Re: mail() in windows + php4.3
| From: | Serban Gh. Ghita | Date: | Wed, 25 Feb 2004 09:49:30 +0000 |
| Subject: | Re: mail() in windows + php4.3 | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969359217@lists.php.net to get a copy of this message | ||
You don't have sendmail in Windows.
Try using:
[mail function]
SMTP = smtp.server.com
For that you must have a SMTP server installed.
zam
"Kk Kong" <nws@fmo.esf.edu.hk> wrote in message
news:20040225042217.24176.qmail@pb1.pair.com...
> I keep geting error message:
>
> Warning: mail(): "sendmail_from" not set in php.ini or custom "From:"
header
> missing in D:\Inetpub\wwwroot\php\sendmail.php on line 11
>
> php.ini:
> sendmail_from = webmaster@mydomain.com
>
> sendmail.php:
> <?php
> mail("user@mydomain.com", "My Subject", "Line 1\nLine 2\nLine 3",
> "From: webmaster@mydomain.com");
> ?>
>
> Can anyone help with this problem? thanks a lot!
>
> KK Kong