miniproj Posted June 15, 2011 Share Posted June 15, 2011 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" Quote Link to comment https://forums.phpfreaks.com/topic/239406-warning-mail-functionmail-failed-to-connect-to-mailserver-at-localhost/ Share on other sites More sharing options...
trq Posted June 15, 2011 Share Posted June 15, 2011 Gmail requires authentication. PHP's mail function does not support it. Quote Link to comment https://forums.phpfreaks.com/topic/239406-warning-mail-functionmail-failed-to-connect-to-mailserver-at-localhost/#findComment-1229952 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.