brainonastick Posted August 31, 2009 Posted August 31, 2009 Hi there, Until recently our mail server and web server were on one machine. However now the mail server is on a separate machine with its own ip address. This means that all my email notification scripts have stopped working. How do I code it in the php.ini file so that it knows which ip address to use? All advice gratefully received. Cheers, Steven
Genx Posted August 31, 2009 Posted August 31, 2009 http://www.phpbuilder.com/board/showthread.php?t=10307560 Basically just find the line that says: SMTP=localhost and change it to SMTP=yourEmailMachine
brainonastick Posted September 4, 2009 Author Posted September 4, 2009 Thanks Genx but no joy. I tried SMTP=ip address of mail server and SMTP=domain name of mail server but still not working. We have a Mac environment and run on Apache. Does that matter? Cheers, Steven
Genx Posted September 4, 2009 Posted September 4, 2009 Well 2 things: 1) Paste relevant lines here just to make sure you haven't done something silly before we go goose hunting. 2) It may be that your email server requires authentication when sending from an IP that is not localhost. You may need to tweak your mail server. If tweaking your mail server is not an option you can look at using a different method for sending email but again... just double check 1 first.
Recommended Posts
This topic is 5628 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now