i am trying to send mail from localhost to web mail server like yahoo,gmail. But i am not able to do this. Mail function error comes again and again.
Are you looking for some thing like this
[mail function]
; For Win32 only.
SMTP = smtp.yourdomain.tld
; For Win32 only.
sendmail_from = webmaster@yourdomain.tld
; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path =
I have installed ArGoSoft mail server.
Do you have a mail server running on your computer?
I am getting this error
Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:\wamp\www\Practice 1\rec.php on line 11
What error are you getting?