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 Link to comment https://forums.phpfreaks.com/topic/109126-get-mx-record-for-domain/ 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 Link to comment https://forums.phpfreaks.com/topic/109126-get-mx-record-for-domain/#findComment-559869 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); Link to comment https://forums.phpfreaks.com/topic/109126-get-mx-record-for-domain/#findComment-559893 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.