Hello i would like to ask what is the problem on this code why i can't send mail.. here's my code: $towhom = "someone@mydomain.com"; $todayis = date("l, F j, Y, g:i a"); $attnn = "Test"; $subjects = $attnn; $from = "admin@mydomain.com"; $messages = "$todayis [EST] \n Hello \n "; mail($towhom, $subjects, $messages, $from); PHP: on my php.ini [mail function] ; For Win32 only. SMTP = smtp.mydomain.com ; for Win32 only smtp_port = 25 sendmail_from= admin@mydomain.com ; for Win32 only Code (markup): i'm working on IIS 6, OS windows server 2003 thanks for the help.
mail is a program that runs only on linux based systems. If you want to use email on IIS You will need to use SMTP instead. Peace,
you might want to try getting a class from phpclasses.org and using that instead, its probably more foolproof than the standard mail() call