random1 Posted June 14, 2010 Share Posted June 14, 2010 While trying: mail('[email protected]', 'hi!', 'message'); I'm getting the error: Warning: mail() [function.mail0]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in .... etc In my php.ini I have: [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = [email protected] I'm using SmarterMail. Any ideas? Link to comment https://forums.phpfreaks.com/topic/204704-php-and-mail-configuration/ Share on other sites More sharing options...
Fenhopi Posted June 14, 2010 Share Posted June 14, 2010 Try 127.0.0.1 instead of localhost. Or change your port to 2525 Link to comment https://forums.phpfreaks.com/topic/204704-php-and-mail-configuration/#findComment-1071739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.