#40481 [Opn->Fbk]: mail() sends email to wrong address where there are "-" in localpart of "to"

From: Date: Wed, 14 Feb 2007 12:04:32 +0000
Subject: #40481 [Opn->Fbk]: mail() sends email to wrong address where there are "-" in localpart of "to"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108860@lists.php.net to get a copy of this message
ID: 40481 Updated by: tony2001@php.net 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 http://bugs.php.net/?id=40481&edit=1

« previous php.bugs (#108860) next »