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
https://forums.phpfreaks.com/topic/103656-mails-sending-with-php-in-apache-vs-iis/
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.