#40481 [NEW]: mail() sends email to wrong address where there are "-" in localpart of "to"
| From: | penartur at yandex dot ru | Date: | Wed, 14 Feb 2007 11:50:27 +0000 |
| Subject: | #40481 [NEW]: mail() sends email to wrong address where there are "-" in localpart of "to" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108858@lists.php.net to get a copy of this message | ||
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 http://bugs.php.net/?id=40481&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40481&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40481&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40481&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40481&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40481&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40481&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40481&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40481&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40481&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40481&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40481&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40481&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40481&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40481&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40481&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40481&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40481&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40481&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40481&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40481&r=mysqlcfg