Forum Moderators: coopster

Message Too Old, No Replies

sending response from php form on website

Help!

         

newmediadiva

2:37 am on May 18, 2006 (gmt 0)



Here is what happens.

I have a website that has a php form on it. When someone fills in their name and email, a notice is sent to the email of the site owner. The thing is, the email is hosted with another company. We have modified the mx records and the email has been working fine--EXCEPT from the website. For whatever reason, the site host gets the email and it doesn't forward on as it should. No one seems willing to help.

My question. Is there some way, in the php code, to tell the server that the email is not local, that it needs to go and look at the mx files to know where to properly send it?

RogueDogg

4:00 am on May 18, 2006 (gmt 0)

10+ Year Member



post some code maybe that'll help get my mind around what your issues are. :)

coopster

4:36 pm on May 24, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, newmediadiva.

If the intended mail server is receiving the email and not forwarding it, then your code seems to be effectively doing what it is supposed to. Have you looked at the error logs/spam filters on the receiving mail server to see why it is not forwarding?

frozenpeas

11:49 pm on May 27, 2006 (gmt 0)

10+ Year Member



It does not matter where the MX records are based as PHP will send the email to where ever you ask it to as it is totally separate.

Test the form sending to a known email address that you have and if this does not work check that the headers are being written correctly as the host may have a spam filter (as mentioned earlier) that dumps anything that is malformed.