Results 1 to 2 of 2
I have a php script which uses php mail to send us the results from a web form. If I set the email address to receive the form as my ...
- 03-09-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 1
local email getting lost
I have a php script which uses php mail to send us the results from a web form. If I set the email address to receive the form as my yahoo account I receive the email fine, however if I set the email address to receive the form as an address with our domain name we never get the email.
I have searched on google to see if I could find out what was happening and did see some references to issues where if the web server was sending an email 'locally' it didnt check the mx record. Which seems like whats happening - but I am not sure how to tell linux (centos) where the email for a 'local' email should be sent.
Can anyone help?
Thanks - Hugh
- 03-09-2010 #2
pretty sure PHP's email function is always going to query a DNS server for MX records. So if you got a DNS server, set up the MX records. It (i.e. you php script) will query the DNS servers that the machine is set to query.
linux user # 503963


Reply With Quote