PDA

View Full Version : mail() function problem or smtp server problem


umen
08-26-2002, 08:54 AM
Hello folks , im trying to use the mail() function in php that is basically sending mail throw the smtp server ... any way what i need to config to make it work ? i have the apache installed on win2000
when i try to send email something like this :
$Ps="foo";
mail("umen@netvision.net.il","Test form php page","your password is :".$Ps);
it gives me this erorr:
Warning: Server Error in c:\apache\htdocs\shoppingsys\register.php on line 15
that is the line with the mail() function .
thanks

firepages
08-27-2002, 05:18 AM
Hi, 2 possibles,
1) - have you set your mail settings in the php.ini ? you need to set your SMTP server and email address

2) if you have done the above then your mail-server probably requires authentication, a feature that is still missing from default PHP setup , in that case you will need to grab a mail script that does SMTP authentication for you (try hotscripts.com >PHP>email) or run your own mail-server