Ask a Question related to PHP Bugs, Design and Development.
-
penartur at yandex dot ru #1
#40481 [NEW]: mail() sends email to wrong address where there are "-" in localpart of "to"
From: penartur at yandex dot ru
Operating system: Linux
PHP version: 5.2.1
PHP Bug Type: Mail related
Bug description: mail() sends email to wrong address where there are "-" in localpart of "to"
Description:
------------
If localpart of "to" contains "-" characters, then they are truncated with
all of the following characters before "@"
Reproduce code:
---------------
<?php
mail('somename@mailserver.loc','msg1','msg1');
mail('somename-abc@mailserver.loc','msg2','msg2');
?>
Expected result:
----------------
Message 'msg1' in 'somename' mailbox and message 'msg2' in 'somename-abc'
mailbox
Actual result:
--------------
Two messages ('msg1' and 'msg2') in 'somename' mailbox
--
Edit bug report at [url]http://bugs.php.net/?id=40481&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40481&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40481&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40481&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40481&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40481&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40481&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40481&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40481&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40481&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40481&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40481&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40481&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40481&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40481&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40481&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40481&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40481&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40481&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40481&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40481&r=mysqlcfg[/url]
penartur at yandex dot ru Guest
-
#26218 [Fbk->Opn]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218 User updated by: bzheng at us dot nomura dot com Reported By: bzheng at us dot nomura dot com -Status: ... -
#26218 [Opn->Fbk]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218 Updated by: pollita@php.net Reported By: bzheng at us dot nomura dot com -Status: Open +Status: ... -
#26218 [NoF->Opn]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218 User updated by: bzheng at us dot nomura dot com Reported By: bzheng at us dot nomura dot com -Status: No... -
#26218 [Opn]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218 User updated by: bzheng at us dot nomura dot com Reported By: bzheng at us dot nomura dot com Status: Open... -
#26218 [NEW]: mail() sends extra "RCPT TO: <>" to smtp host
From: bzheng at us dot nomura dot com Operating system: W2k server/IIS 5/PHP in CGI mode PHP version: 4.3.3 PHP Bug Type: ... -
tony2001@php.net #2
#40481 [Opn->Fbk]: mail() sends email to wrong address where there are "-" in localpart of "to"
ID: 40481
Updated by: [email]tony2001@php.net[/email]
Reported By: penartur at yandex dot ru
-Status: Open
+Status: Feedback
Bug Type: Mail related
Operating System: Linux
PHP Version: 5.2.1
New Comment:
Cannot reproduce.
(Created "test-user" and sent an email to its mailbox, which
successfully arrived).
Check your aliases and mail server.
Previous Comments:
------------------------------------------------------------------------
[2007-02-14 11:50:27] penartur at yandex dot ru
Description:
------------
If localpart of "to" contains "-" characters, then they are truncated
with all of the following characters before "@"
Reproduce code:
---------------
<?php
mail('somename@mailserver.loc','msg1','msg1');
mail('somename-abc@mailserver.loc','msg2','msg2');
?>
Expected result:
----------------
Message 'msg1' in 'somename' mailbox and message 'msg2' in
'somename-abc' mailbox
Actual result:
--------------
Two messages ('msg1' and 'msg2') in 'somename' mailbox
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40481&edit=1[/url]
tony2001@php.net Guest



Reply With Quote

