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
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
Share on other sites

A lot of times PORT 25 is blocked by ISPs. I am not sure about IIS setup, but usually you need to install a mail server on the machine.

 

IIS may do that for you, but again I am not sure. I know Comcast does block Port 25.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.