PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail » Bug #1594

Recipient name containing dots makes sendmail return error code 67

Details

Submitted2004-06-09 16:52 UTC
Fromloconet at hotmail dot com
StatusNo Feedback
PackageMail
PHP VersionIrrelevant
OSLinux 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