to all,
ok i am suppose to be doing a registeration where after the user has clicked the "submit" button, there will be an email sent to the user automatically and immediately. i have done it but now..i am not sure where can i insert an activation link for the user to click in order to activate his/her account. the mail code that i have done is this:
all the experts out there....need ur advice...thanks in advance.
ok i am suppose to be doing a registeration where after the user has clicked the "submit" button, there will be an email sent to the user automatically and immediately. i have done it but now..i am not sure where can i insert an activation link for the user to click in order to activate his/her account. the mail code that i have done is this:
PHP Code:
set_time_limit(3600);
echo ("{$_SERVER['SERVER_NAME']}");
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
set_time_limit(3600);
$mail = new as_Mail();
$mail->to = ($email);
$mail->from = "[email protected]{$_SERVER['SERVER_NAME']}.com";
$mail->cc = "[email protected]";
$mail->bcc = "[email protected]";
$mail->subject = "**BULK** Testing the as_Mail class";
$mail->body = "This is the time this <b>mail</b> was generated: " . date("F j, Y, g:i a");
$mail->rigorous_email_check = true;
$mail->rigorousEmailCheck($mail->to);
if($mail->send())
echo("Successfully sent an email titled $mail->subject!");
else
echo("Error while attempting to send an email titled $mail->subject: " . $mail->errorMsg());
echo("<br>");
echo(str_replace("\r\n", "<br>", $mail->viewMsg()));*/
Comment