php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7068 fails when 'to:' argument has the form "Name <name@somewhere.xxx>"
Submitted: 2000-10-06 15:03 UTC Modified: 2015-05-28 12:48 UTC
Votes:5
Avg. Score:1.8 ± 1.0
Reproduced:1 of 3 (33.3%)
Same Version:2 (200.0%)
Same OS:2 (200.0%)
From: moxley at inetarena dot com Assigned: kalle (profile)
Status: Closed Package: Mail related
PHP Version: Any version OS: win32 only
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: moxley at inetarena dot com
New email:
PHP Version: OS:

 

 [2000-10-06 15:03 UTC] moxley at inetarena dot com
code that fails:
mail("Greg Kempster <moxley@inetarena.com>", "theSubject",
"theBody", "From: me <moxley@inetarena.com>");

php.ini at mail portion:
[mail function]
SMTP
		=	pop.ptld.uswest.net			;for win32 only
sendmail_from
=
info@caelestisproductions.com
;for win32 only
;sendmail_path
=
					;for unix only, may supply arguments as well (default is
'sendmail -t -i')

Additionally:
This works:
mail("moxley@inetarena.com", "theSubject", "theBody", "From:
me <moxley@inetarena.com>");

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-12 07:55 UTC] cynic@php.net
confirmed on NT 5 / Apache / CGI from today's CVS.

mail( '"CYNIC" <cynic@php.net>' , 'subject' , 'body body body' ) ;

(it doesn't matter whether the name is quoted or not)

result:
-------

Hi. This is the qmail-send program at php.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.


<CYNIC <cynic@php.net>:
Sorry, no mailbox here by that name. (#5.1.1)


--- Below this line is a copy of the message.


Return-Path: <cynic@mail.cz>
Received: (qmail 28535 invoked from network); 12 Jan 2001 12:53:15 -0000
Received: from unknown (HELO k0r3.reflektor.cz) (212.24.129.44)
  by www.php.net with SMTP; 12 Jan 2001 12:53:15 -0000
Received: (qmail 29436 invoked by uid 202); 12 Jan 2001 12:52:37 -0000
Received: from unknown (HELO zvahlav) (212.24.139.3)
  by k0r3.reflektor.cz with SMTP; 12 Jan 2001 12:52:37 -0000
Date: Fri, 12 Jan 2001 13:57:38 -0100
From: cynic@mail.cz
Subject: subject
To: "CYNIC" <cynic@php.net>


body body body
 [2001-02-01 15:02 UTC] elixer@php.net
Try this as a work around:

mail("user@host.com",
     "My Subject",
     "My Body",
     "To: \"Some User\" <user@host.com>\nFrom: me <blah@blah.com>"
);

Sean
 [2001-06-22 18:27 UTC] hholzgra@php.net
windows mail code needs a rewrite
 [2010-11-19 00:14 UTC] jani@php.net
-Package: Feature/Change Request +Package: Mail related -Operating System: Any windows +Operating System: win32 only
 [2011-03-17 17:54 UTC] anrdaemon at freemail dot ru
The ciode you're trying *should* fail.
"to" argument is not a header "To:" field value, but a mail envelope RCPT-TO parameter. Which does not expect anything but email address(es).
 [2015-05-28 12:48 UTC] kalle@php.net
-Status: Assigned +Status: Closed -Assigned To: hholzgra +Assigned To: kalle
 [2015-05-28 12:48 UTC] kalle@php.net
I'm sorry for the long wait, I hope you are still with us, but as of PHP7 this bug is no longer present, possible also in much much older versions.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC