ID:               45932
 Updated by:       [EMAIL PROTECTED]
 Reported By:      danny at mintyslippers dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Mail related
 Operating System: Windows Server 2003 SP2
 PHP Version:      5.2.6
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #28038


Previous Comments:
------------------------------------------------------------------------

[2008-08-27 09:23:32] danny at mintyslippers dot com

Description:
------------
Since upgrading to PHP 5.2.6 I can no longer use a full email address.

When sending an email to "Joe Blogs <[EMAIL PROTECTED]>" It fails with
"Invalid e-mail address". This is on a basic mail script.

It appears to be because PHP 5.2.6 reparses this as "<Joe Blogs
<[EMAIL PROTECTED]>>". It tries to help and add more <> brackets than
necessary.

The only thing changed on my server is PHP. Others have reported the
problem on phpfreaks.com. I also tested on a freshly built virtual
server with the same results.

I also run wordpress which also fails when sending mails because of
this. If I write a script to just mailto "[EMAIL PROTECTED]" without any
<> brackets it works fine but cannot use the name.


Reproduce code:
---------------
<?php

$mailto = "[EMAIL PROTECTED]" ;
$subject = "Mintyslippers Feedback" ;

$messageproper = "Test";

mail($mailto, $subject, $messageproper, "From: Test User
<[EMAIL PROTECTED]" );
?>

Expected result:
----------------
Sucessful email


Actual result:
--------------
Invalid e-mail address


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


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

Reply via email to