Forum Moderators: coopster

Message Too Old, No Replies

using mail() but website server is not mail server

messages not being received

         

bomburmusicmallet

1:41 am on Sep 26, 2006 (gmt 0)

10+ Year Member



Hello,

I am using a php email script that I wrote and use for many of my websites and the website I've designed and host. I have a client who has a separate host account. Additionally, he uses UltraDNS instead of the host to manage his domain names. The website (this-site.com) is at one IP (the one from the host) and the mail server (mail.this-site.com) is at another IP address where they host his Exchange server.

In my contact form php script, I am using mail(), and sending the email to info@this-site.com. None of the email that is spawned from the contact form is being received. However, I can send myself a copy and I receive it fine.

I spent a long time on the phone with the Exchange server IT guy, and he said that the contact form emails aren't even hitting the mail server. I am wondering if this has something to do with a php.ini setting, and if I have to explicitly put in the IP of the mail.this-site.com server somewhere.

Any help will be greatly appreciated!

eelixduppy

1:58 am on Sep 26, 2006 (gmt 0)



You can change the SMTP server in your php.ini config file. Look for smtp [us2.php.net] and smtp_port [us2.php.net]. Change these values to the mail server that you have, and there you go.

Good luck!

bomburmusicmallet

11:26 am on Sep 26, 2006 (gmt 0)

10+ Year Member



That did it! Thanks!