Using code I did not write. Works fine as long as message has no carriage returns. With CR, I am getting the following error -
Warning: mail() [function.mail]: SMTP server response: 451 See djb/docs/smtplf.html.”>h ttp://pobox.com/djb/docs/smtplf.html. in D:\Hosting\2229 431\html\sendMa il.php on line 152
I realize it must have something to do with \r\n but am not a coder. I want to fix this code as it also uses another script file to provide effects. Lines 144-152 read -
Please help if you can.
Warning: mail() [function.mail]: SMTP server response: 451 See djb/docs/smtplf.html.”>h ttp://pobox.com/djb/docs/smtplf.html. in D:\Hosting\2229 431\html\sendMa il.php on line 152
I realize it must have something to do with \r\n but am not a coder. I want to fix this code as it also uses another script file to provide effects. Lines 144-152 read -
Code:
if(!$error) {
$mail = mail($adminEmail, $subject, $message,
"From: ".$name." <".$email.">\r\n"
."Reply-To: ".$email."\r\n"
."X-Mailer: PHP/" . phpversion());