Bug #64067 [Nab]: to email address messed up

From: Date: Fri, 25 Jan 2013 12:06:55 +0000
Subject: Bug #64067 [Nab]: to email address messed up
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-176239@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64067&edit=1 ID: 64067 User updated by: erikv3 at gmx dot net Reported by: erikv3 at gmx dot net Summary: to email address messed up Status: Not a bug Type: Bug Package: *Mail Related PHP Version: 5.3.21 Block user comment: N Private report: N New Comment: if i understood correct from the rfc: address can be (a.o.): [display-name] angle-addr where display-name should be a dot atom, or if not a dot atom, it should be a quoted string and thus the call should be: $send_status = mail('"test 1:2:3:4:5:6:7:8:9" <some@domain.net>', 'strange name test', 'hi') correct? think so, bec it works. sorry about registering it as a bug. i'm using a mailscript and expected it to work properly. and thus again: expect the unexpected. thanks, erik Previous Comments: ------------------------------------------------------------------------ [2013-01-25 12:03:58] erikv3 at gmx dot net if i understood correct from the rfc: address can be (a.o.): [display-name] angle-addr where display-name should be a dot atom, or if not a dot atom, it should be a quoted string and thus the call should be: $send_status = mail('"test 1:2:3:4:5:6:7:8:9" <some@domain.net>', 'strange name test', 'hi') ------------------------------------------------------------------------ [2013-01-25 10:54:45] krakjoe@php.net This is a result of misuse. Please see section 2.2 of the appropriate RFC: http://www.faqs.org/rfcs/rfc2822.html ------------------------------------------------------------------------ [2013-01-25 08:28:35] erikv3 at gmx dot net Description: ------------ --- From manual page: http://www.php.net/function.mail#refsect1-function.mail- parameters --- Test script: --------------- $send_status = mail("test 1:2:3:4:5:6:7:8:9 <erikv2@gmx.net>", "strange name test", "hi"); Expected result: ---------------- an email with in the to field: test 1:2:3:4:5:6:7:8:9 <erikv2@gmx.net> Actual result: -------------- this is the actual to: test@roadrunner.nedlinux.com, "1:2:3:4:5:6:7:8"@roadrunner.nedlinux.com:9 <erikv2@gmx.net> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64067&edit=1

« previous php.bugs (#176239) next »