i have script sends mail line breaks work , other times not. have no idea causes them break , how resolve.
this example of type of code have
$message .= "name: ".$_post['name'] . "\r\n"; $message .= "e-mail address: ".$_post['email'] . "\r\n"; $message .= "telephone number: ".$_post['telephone'] . "\r\n"; $message .= "subject: ".$_post['subject'] . "\r\n"; $message .= "message: ".$_post['message']. "\r\n"; $message .= "=========================\r\n";
there huge issue line endings specially when pass message , more specially, when pass mail() function.
so said in comment, better user normal library , recommend swiftmailer. under wing of such developer fabien potencier, main author behind symfony2, etc.
Comments
Post a Comment