August 31, 200916 yr 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
August 31, 200916 yr http://www.phpbuilder.com/board/showthread.php?t=10307560 Basically just find the line that says: SMTP=localhost and change it to SMTP=yourEmailMachine
September 4, 200916 yr Author 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
September 4, 200916 yr 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.
Create an account or sign in to comment