PDA

Click to See Complete Forum and Search --> : sending mail with PHP


websurfer907
Oct 29th, 2000, 06:51 PM
For some reason when I try to do this:

mail("webmaster@programmerstuff.com","test","test");

it doesn't work. Did I make some stupid mistake in the code above? (I don't think so) or is there something wrong with the server?

Dim
Oct 30th, 2000, 11:58 PM
I don't see anything wrong with the code above...it's a possiblity that the php on the server was down.

D!m

Dec 25th, 2000, 01:54 PM
It's probably because you don't have a SMTP server set up on the machine you were trying to execute the code on....

I don't know where to get one. but I am pretty sure thats the problem.

JButi
Jan 31st, 2001, 11:04 PM
If you are using PWS or IIS4+ be sure to set the SMTP server address as well as the admin email address in the PHP.INI file in your winnt or windows directory.