Mail(), PHP and Apach
| From: | Guillaume ARNAUD | Date: | Tue, 10 Apr 2001 12:04:56 +0000 |
| Subject: | Mail(), PHP and Apach | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6601@lists.php.net to get a copy of this message | ||
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