Home » Mail » Mail » Bug #6648
rfc822 problem during smtp conversation phase.
Details
| Submitted | 2006-01-31 23:35 UTC |
|---|---|
| From | ruslan2004 at zr dot ru |
| Assigned | jon |
| Status | Bogus |
| Package | |
| PHP Version | 5.1.1 |
| OS | win2003 |
| 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>>