Jump to content

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost"


miniproj

Recommended Posts

im having this error after changing my settings in php.ini ans sendmail.ini ..im using xampp....

 

 

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:\xampp\htdocs\minippro\mail.php on line 9

 

having the settings as the following:-

php.ini

[mail function]

; For Win32 only.

; http://php.net/smtp

SMTP = smtp.gmail.com

; http://php.net/smtp-port

smtp_port = 465

 

; For Win32 only.

; http://php.net/sendmail-from

sendmail_from = [email protected]

 

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").

; http://php.net/sendmail-path

sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.