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 <[EMAIL PROTECTED]>"); > mail("fred <[EMAIL PROTECTED]>", "the subject", "message"); > ?> > > On my windows nt server I can only run: > <? > ini_set("SMTP", "192.168.0.126"); > ini_set("sendmail_from", "[EMAIL PROTECTED]"); > mail("[EMAIL PROTECTED]", "the subject", "message"); > ?> > > I have an error as soon as i use eaml like: mail <[EMAIL PROTECTED]> > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php