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" <[email protected]>', 'strange name 
test', 'hi')


Previous Comments:
------------------------------------------------------------------------
[2013-01-25 10:54:45] [email protected]

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 <[email protected]>", "strange name 
test", "hi");

Expected result:
----------------
an email with in the to field:
test 1:2:3:4:5:6:7:8:9 <[email protected]>

Actual result:
--------------
this is the actual to:

[email protected],
        "1:2:3:4:5:6:7:8"@roadrunner.nedlinux.com:9 <[email protected]>


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64067&edit=1

Reply via email to