//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 \r\n"; $headers .= "Reply-To: 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";