Home » Mail » Mail » Bug #1594
Recipient name containing dots makes sendmail return error code 67
Details
| Submitted | 2004-06-09 16:52 UTC |
|---|---|
| From | loconet at hotmail dot com |
| Status | No Feedback |
| Package | |
| PHP Version | Irrelevant |
| OS | Linux 2.4.18-27 |
| Roadmaps | (Not assigned) |
Comments
[2004-06-09 16:52 UTC] loconet at hotmail dot com
Description:
------------
When sending e-mail, if $to contains a dot in the recipient's name send() returns a Pear_Error with the following error message:
sendmail returned error code 67
I checked Mail/sendmail.php and send mail is executed like this:
/usr/sbin/sendmail -t -i -ffromuser@host.com -- @
notice the shortned recipient address to @ when it should have the $to's email address instead. Note that it actually sends the e-mail find.
Reproduce code:
---------------
$to = "J. Carlos Navea <loconet@hotmail.com>";
$senderParams = array("sendmail_args"=>" -t -i ");
$mail =& Mail::factory("sendmail",$senderParams);
$mail->send($to,$hdrs,$body);
Expected result:
----------------
It should send the e-mail without sendmail returning an error
Actual result:
--------------
send() returns a Pear_Error with the following error message:
sendmail returned error code 67