mail() problem with email <mail@dom.com>
| From: | fred | Date: | Mon, 29 Apr 2002 09:44:44 +0000 |
| Subject: | mail() problem with email <mail@dom.com> | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95120@lists.php.net to get a copy of this message | ||
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 ??
Thanks for your support.