PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail » Bug #6648

rfc822 problem during smtp conversation phase.

Details

Submitted2006-01-31 23:35 UTC
Fromruslan2004 at zr dot ru
Assignedjon
StatusBogus
PackageMail
PHP Version5.1.1
OSwin2003
Roadmaps(Not assigned)

Comments

[2006-01-31 23:35 UTC] ruslan2004 at zr dot ru

Description:
------------
Unable to use email adress like:
"Ruslan Sulakov" <i@zr.ru>

There is a bug during smtp protocol conversations phase... Look:
during talking with smtp server... php script tells such:
MAIL FROM:< "Ruslan Sulakov" <i@zr.ru>>

it's a bug! here must be:
MAIL FROM:"Ruslan Sulakov" <i@zr.ru>
---
bug has appeared after upgrading xammp to latest version some days ago. (I think , php was 5.04 before upgrading)

Win2003
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1

Test script:
---------------
$text = $arr['body'];
$html = '';
$crlf = "\n";
$hdrs = array(
'From' => '"Ruslan Sulakov" <i@zr.ru>',
'Subject' => $arr['subject']
);

$mime = new Mail_mime($crlf);

$mime->setTXTBody($text);

$mimebody = $mime->get( array ('text_encoding' => 'quoted-printable',
'head_charset' => 'windows-1251',
'text_charset' => 'windows-1251',
'html_charset' => 'windows-1251'
)
);
$hdrs = $mime->headers($hdrs);

$mail =& Mail::factory('mail');
$accepted = $mail->send($arr['to'], $hdrs, $mimebody);
-------------------------------
this does not send mail because of smtp protocol conversations failure.. look:
during talking with smtp server... php script tells such:
MAIL FROM:< "Ruslan Sulakov" <i@zr.ru>>

it's a bug! here must be:
MAIL FROM:"Ruslan Sulakov" <i@zr.ru>

!!

Expected result:
----------------
MAIL FROM:"Ruslan Sulakov" <i@zr.ru>

Actual result:
--------------
MAIL FROM:< "Ruslan Sulakov" <i@zr.ru>>