T Horton Posted June 7, 2008 Share Posted June 7, 2008 Hello All Does anyone know how to find out what the MX record is for a domain? I have some final adjustments to make on my website and basically it works fine most of the time. The only problem at the moment is that for email addresses at abc.com, for example, that need to be checked at SMTP server mailserver.com, are coming up as invalid email addresses. The code I have doesn't detect that fact, so is stating that the email address is invalid. Does this make sense? Email addresses at xyz.com on SMTP server xyz.com are working fine obviously. Does anyone know of a fix for this? Your help would be greatly appreciated. Best Regards Tom Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted June 7, 2008 Share Posted June 7, 2008 For php to get an MX record - http://php.net/dns_get_record also http://php.net/getmxrr Quote Link to comment Share on other sites More sharing options...
kbh43dz_u Posted June 7, 2008 Share Posted June 7, 2008 $domain = "xyz.com"; $entry = dns_get_record($domain, DNS_MX); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.