Jump to content

PHP SMTP config


jlr2k8

Recommended Posts

Hmm... I can't seem to figure this out. I have PHP5 set up with IIS6 and everything works great, except I can't get the SMTP feature in IIS to work.

 

This is my PHP.ini configuration:

 

SMTP = localhost

smtp_port = 25

sendmail_from = localhost

 

But... I get the following 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 E:...email.php on line 44

 

Link to comment
https://forums.phpfreaks.com/topic/46645-php-smtp-config/
Share on other sites

does your server have a mail server on it??

 

If you are not running an exchange server or some other mail server that will not work.

 

You also need to restart your webserver for the changes to take effect.

 

If you do not have a mail server use the smtp from your isp. same one from outlook or outlook express

 

Ray

Link to comment
https://forums.phpfreaks.com/topic/46645-php-smtp-config/#findComment-227169
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.