All pastes #511641 Raw Edit

Unnamed

public php v1 · immutable
#511641 ·published 2007-05-26 15:43 UTC
rendered paste body
//activation link$activation_link = "http://www.civ-online.com/signedup.php?link=$form_username_hashed";$mime_boundary = "Civ-Online.com".md5(time());//------------------------------------msg body---------------------------------$subject = "Civ-Online Confirmation Email";$headers = "From: Civ-Online.com <team@civ-online.com>\r\n";$headers .= "Reply-To: Civ-Online.com <team@civ-online.com>\r\n";$headers .= "MIME-Version: 1.0\r\n";$headers .= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\r\n";$message = "--$mime_boundary\r\n";$message .= "Content-Type: text/plain; charset=UTF-8\r\n";$message .= "Content-Transfer-Encoding: 8bit\r\n\r\n";$message .= "Dear user,\r\n\r\n";$message .= "On behalf of the team here at Civ-Online.com we thank you for signing up and joining us.\r\n";$message .= "Below is the activation link required to activate your account.\r\n\r\n";$message .= "Simply click it and it will take you to the site\r\n\r\n";$message .= "$activation_link\r\n\r\n";$message .= "--$mime_boundary--\r\n\r\n";//-------------------------------end of msg body//---------------------------sending function$mail_sent = @mail( $form_email_address, $subject, $message, $headers );echo $mail_sent ? "Mail sent" : "Mail failed";