Bug #7068 Updated: fails when 'to:' argument has the form "Name <name@somewhere.xxx>"

From: Date: Fri, 22 Jun 2001 22:27:08 +0000
Subject: Bug #7068 Updated: fails when 'to:' argument has the form "Name <name@somewhere.xxx>"
Groups: php.dev 
Request: Send a blank email to php-dev+get-57706@lists.php.net to get a copy of this message
ID: 7068 Updated by: hholzgra Reported By: moxley@inetarena.com Old-Status: Open Status: Assigned Bug Type: Mail related Operating system: PHP Version: 4.0.2 Assigned To: hholzgra Comments: windows mail code needs a rewrite Previous Comments: --------------------------------------------------------------------------- [2001-02-01 15:02:49] 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-01-12 07:55:55] 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 --------------------------------------------------------------------------- [2000-10-06 15:03:20] moxley@inetarena.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>"); --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7068&edit=2

« previous php.dev (#57706) next »