Re: mail() problem with email <mail@dom.com>

From: Date: Wed, 01 May 2002 04:07:43 +0000
Subject: Re: mail() problem with email <mail@dom.com>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95483@lists.php.net to get a copy of this message
Hello, Fred wrote:
Hello, I have a pb with mail() function. my script run ok on a linux but not on a nt: <? ini_set("SMTP", "192.168.0.126"); ini_set("sendmail_from", "info <info@domain1.com>"); mail("fred <fred@domain2.com>", "the subject", "message"); ?> On my windows nt server I can only run: <? ini_set("SMTP", "192.168.0.126"); ini_set("sendmail_from", "info@domain1.com"); mail("fred@domain2.com", "the subject", "message"); ?> I have an error as soon as i use eaml like: mail <mail@domain.com> It is allways the same smtp server. Is someone have an idea ??
It is possible that you may be facing the multiple line response bug of SMTP code for Windows. You may want to try this SMTP class here and enable debug information to see if it can deliver your messages right or see what errors come from it if it fails. http://www.phpclasses.org/browse.html/package/14.html If you decide to use this class, you may also want to try this wrapper class that uses the above with a simpler interface: http://www.phpclasses.org/browse.html/package/9.html Regards, Manuel Lemos

« previous php.general (#95483) next »