#28038 [Com]: Sent incorrect RCPT TO commands to SMTP server

From: Date: Fri, 17 Oct 2008 08:01:57 +0000
Subject: #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129786@lists.php.net to get a copy of this message
ID: 28038 Comment by: morgue1 at free dot fr Reported By: jordi at jcanals dot net Status: Open Bug Type: Mail related Operating System: win32 only PHP Version: 5CVS, 6CVS (2008-08-27) New Comment: David, your fix doesn't work. It still <Foo<foo@bar.com>>. I also tried "Foo" <foo@bar.com> without success. I only can send mail without give name for sender or receiver. Previous Comments: ------------------------------------------------------------------------ [2008-09-16 15:38:01] david at thedatabridge dot com I had the same problem until I changed the format of my headers. I had this problem with this style: "From: Foo Bar <foo@bar.net>" fixed by using this style: "From: Foo Bar<foo@bar.net>" Don't include space between Name and <email> and you should be ok! :P ------------------------------------------------------------------------ [2008-09-11 13:11:19] andreas at pcdaemon dot gr Yes this worked fine for me. Thanks ------------------------------------------------------------------------ [2008-09-07 08:53:17] renouard_roch at hotmail dot fr cool ------------------------------------------------------------------------ [2008-09-01 12:11:00] anon at anon dot com Workaround is: Set the following before calling the mail function: ini_set('sendmail_from', 'me@domain.com); ------------------------------------------------------------------------ [2008-04-17 16:04:39] kmax at live dot com Issalys, you fix dont work and make no sense. My suggestion is get some free email class (like XPertMailer) and use it instead of mail() native function. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28038 -- Edit this bug report at http://bugs.php.net/?id=28038&edit=1

« previous php.bugs (#129786) next »