Re: sending mail trough PHP page??
| From: | Ignacio Dom�nguez | Date: | Sun, 12 Jan 2003 18:01:10 +0000 |
| Subject: | Re: sending mail trough PHP page?? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17794@lists.php.net to get a copy of this message | ||
I solved this using
ini_set("sendmail_from", "me@mail.server");
and
ini_set("SMTP", "mail.server");
everytime i needed to use mail().
"Ignacio DomíNguez" <ignacioxd@idcode.sytes.net> wrote in message
news:20030111204650.1323.qmail@pb1.pair.com...
> I get the following error every time I send mail.
>
> Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
> custom "From:" header missing
>
> using this code:
>
> mail("test@test.com", "Subject", "This is the text", "From:
test@test.com");
>
>
>
> i have configured my php.ini to read "sendmail_from = test@test.com"
>
>