php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40481 mail() sends email to wrong address where there are "-" in localpart of "to"
Submitted: 2007-02-14 11:50 UTC Modified: 2007-02-22 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: penartur at yandex dot ru Assigned:
Status: No Feedback Package: Mail related
PHP Version: 5.2.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: penartur at yandex dot ru
New email:
PHP Version: OS:

 

 [2007-02-14 11:50 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-14 12:04 UTC] tony2001@php.net
Cannot reproduce.
(Created "test-user" and sent an email to its mailbox, which successfully arrived).
Check your aliases and mail server.
 [2007-02-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 15:01:30 2024 UTC