rendered paste body<?php
if( $GLOBALS[ 'SCRIPT' ] != 'signup.php' )
{
die( 'You probably want to go <a href=../>here</a>.' );
}
$first_name = $_POST[ 'first_name' ];
$last_name = $_POST[ 'last_name' ];
$email = $_POST[ 'email' ];
$recipient = "$first_name $last_name <$email>";
$subject = 'Complete Signup';
$tmpHTMLComments = $GLOBALS[ 'SITE_HTML_COMMENTS' ];
$GLOBALS[ 'SITE_HTML_COMMENTS' ] = false;
if( $GLOBALS[ 'SITE_SEND_HTML_EMAILS' ] )
{
$validateUpdateLink = <<<EOF
<a href="$validateSignupLink">Validate Update</a>
EOF;
$emailValidateSignup = getTemplate( 'emailValidateSignupHTML' );
}
else
{
$emailValidateSignup = getTemplate( 'emailValidateSignup' );
}
eval( "\$emailValidateSignup = \"$emailValidateSignup\";" );
$GLOBALS[ 'SITE_HTML_COMMENTS' ] = $tmpHTMLComments;
$headers = <<<EOF
From: $GLOBALS[SITE_OWNER_NAME] <$GLOBALS[SITE_OWNER_EMAIL]>
X-Sender: <$GLOBALS[SITE_OWNER_EMAIL]>
Return-Path: <$GLOBALS[SITE_OWNER_EMAIL]>
Error-To: <$GLOBALS[SITE_OWNER_EMAIL]>
X-Mailer: $_SERVER[SERVER_NAME]
EOF;
if( $GLOBALS[ 'SITE_SEND_HTML_EMAILS' ] )
{
$headers .= <<<EOF
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
EOF;
}
if( !mail( $recipient, $subject, $emailValidateSignup, $headers ) )
{
die( 'mail failed to send' );
}
?>