Re: Mail(), PHP and Apach
| From: | Yasuo Ohgaki | Date: | Wed, 11 Apr 2001 06:01:44 +0000 |
| Subject: | Re: Mail(), PHP and Apach | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6620@lists.php.net to get a copy of this message | ||
Do you have anything for sendmail_path?
When I had both SMTP and sendmail_path are set, mail() always failed on
Linux/Apache/PHP.
It may be the same under windows.
Make sure SMTP host is up also.
(telnet your.mail.host 80)
Regards,
--
Yasuo Ohgaki
""Guillaume ARNAUD"" <arnaud@partenium.com> wrote in message
news:003701c0c1b6$76327200$0101a8c0@tele2.pl...
Hi, I am a new user to PHP and Would like to use PHP to send mail.
I use the following script:
<?php
$recipient = "arnaud@partenium.com";
$subject = "some subject";
$mail_cont = "yea yea yea";
$mail_headers = "From: our web site\n";
if(mail($recipient,$subject,$mail_cont,$mail_headers))
print("Success!");
else
print("Sorry, try again.");
?>
and I get
Warning: Unknown error in c:/easyphp/www/index3.php on line 7
Sorry, try again.
My php.ini file include:
[mail function]
SMTP=smtp.tele2.pl ;for win32 only
sendmail_from=arnaud@partenium.com ;for win32 only
Can u help?
THanx