PDA

View Full Version : Setting Up SMTP On My Server


david_m
August 10th, 2007, 10:23 PM
Hey, I am trying to setup my SMTP for PHP to send mail. I have tried downloading a mail server and running it then registering on my phpBB forum I just install and you can see what is going on when i click register and it tries to send the email 5 times then stops.

My ISP is eircom.net. So then I try and register with a email with @eircom.net at the end and it sends perfectly.

They are somehow only allowing me to send it to other users of eircom.net no one else which is useless to me.

What are my options? Thanks.

Also when I changed php.ini from localhost to another SMTP host and saved it and tried to just use the basic mail() function for php and I get this 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 D:\Program Files\Abyss Web Server\htdocs\mail.php on line 2


Why does it say at localhost when I changed it to something else and saved it? There is 2 php.ini files and I editted the RECOMENDED one but I am not sure if it is.

hollowlife1987
August 12th, 2007, 10:17 AM
1. Did you restart Abyss Web Server after making the changes to php.ini?
2. Make sure your changing the right php.ini file

Oh, and make sure that you don't have virus scan/firewall software stopping outgoing traffic on port 25 - this is quite common to stop mass mailing worms from sending mail from your machine.