Jump to content

PHP and mail() configuration?


random1

Recommended Posts

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

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.