Click to See Complete Forum and Search --> : iis and the mail function


sdizier
09-10-2002, 04:27 PM
OK, I'm new to the iis server. and am trying to get the mail function to work. Does iis not come with a default email app. so I can run the function or am i approching the function wrong. This is what I am doing in PHP

mail("slan@email.com", "My Subject", "Line 1\nLine 2\nLine 3");

just like the manual but i get an error...

Warning: Server Error in C:\Documents and Settings\Administrator\Desktop\projects\practice\email.php on line 13

what gives???
Thanks

Slan

hand
09-10-2002, 04:31 PM
Did you set all necessary parameters to php.ini?

[mail function]
; For Win32 only. <<< HERE4YOU
SMTP = localhost

; For Win32 only. <<< HERE4YOU
sendmail_from = me@localhost.com

hearn
09-12-2002, 03:04 AM
Originally posted by hand
Did you set all necessary parameters to php.ini?

[mail function]
; For Win32 only. <<< HERE4YOU
SMTP = localhost

; For Win32 only. <<< HERE4YOU
sendmail_from = me@localhost.com


Also, make sure that your dns records are pointing for your mail server, and change the me@localhost to a qualified domain name, like you@yourdomain.com. Then you also have to make sure that you have an SMTP server running locally on your computer....