Error when sending mail with "php?" in the body
Posted: Sun Nov 22, 2009 12:09 pm
I have a strange problem when trying to send an activation link once a user registers on my website. I can send emails fine except if I have "php?" in the body. I have tried all combinations of characters, everything works, except when I have "php?" in that exact sequence. Have pasted the relevant lines of code below. Can someone guide me please?
$emailto=$emailId;
$body="Thank you for registering. You need to activate your account by clicking on the link below: http://www.mysite.com/activate.php?x=$I ... ivationKey";
$subject="Welcome. Please activate your account.";
$name = "My Name";
$comment="No comment";
$mime_boundary = "<<<--==+X[".md5(time())."]\r\n\r\n";
$headers = "MIME-Version: 1.0"."\r\n"."Content-Type:text/html; charset=iso-8859-1"."\r\n";
mail($emailto,$subject,$body,$headers);
$emailto=$emailId;
$body="Thank you for registering. You need to activate your account by clicking on the link below: http://www.mysite.com/activate.php?x=$I ... ivationKey";
$subject="Welcome. Please activate your account.";
$name = "My Name";
$comment="No comment";
$mime_boundary = "<<<--==+X[".md5(time())."]\r\n\r\n";
$headers = "MIME-Version: 1.0"."\r\n"."Content-Type:text/html; charset=iso-8859-1"."\r\n";
mail($emailto,$subject,$body,$headers);