Click to See Complete Forum and Search --> : mail() doens't work on IIS


wurstbrot
06-25-2002, 05:38 PM
I hope, anyone can help me at this problem. I havn't got any idea, what I'm doing wrong.

I want to run a php script on win 2k-server with installed IIS and SMTP. The SMTP server is on (when I try to connect with telnet, it works). The php.ini ist set to SMTP = server2 (that's the name of the server).

I tried to start this script:

<?php
print mail ('test@thunder-2000.com',
'No need for reply -- PHP test!',
"hi wurstbrot\nLine 2\n");
?>

And that is the response:
Warning: Server Error in m:\mail.php on line 4

why? what is wrong?

Wurstbrot

Anon
06-27-2002, 08:22 AM
Try not to use print before mail. Just mail()

fLIPIS

Anon
07-01-2002, 01:24 PM
The reason mail() doesn't work is becaude you didn't set it up in php.ini..

Win32 uses SMTP to send mail, look in your php.ini