Jump to content

Mails Sending with PHP in Apache vs IIS


Zyphering

Recommended Posts

I have two computers which I made Servers.

 

One has Apache (WAMP) and the other is just IIS configured with PHP/MySQL.

 

I am pretty confident with php.ini configuration about sending mail via smtp and both have identical configuration atleast when it comes to mail sending.

 

The server with IIS is able to send mails without any problem.

 

But Apache is not able to do the same.

It is giving me this error.

 

Warning: mail() [function.mail]: Failed to connect to mailserver at "xxxx.xx.xxx" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\xxx.php on line 1285

 

I have checked everything including turning off and turning on firewall.

 

Is there as setting in apache or some configuration I need to configure for it to be able to send emails ?

I am using the same mail server to send email.

 

I am using Apache for the first time.

Thanks.

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.