Zyphering Posted May 1, 2008 Share Posted May 1, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/103656-mails-sending-with-php-in-apache-vs-iis/ Share on other sites More sharing options...
Zyphering Posted May 1, 2008 Author Share Posted May 1, 2008 Please ignore this. It was my stupidity. McAffe was blocking port 25. On the other system I was using AVG. Sorry.... Quote Link to comment https://forums.phpfreaks.com/topic/103656-mails-sending-with-php-in-apache-vs-iis/#findComment-531007 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.