3 ms·
If you're only worried about the domain aspect, and want a super simple approach just check if you can resolve the hostname.
by stephenr 9y ago
If you're only worried about the domain aspect, and want a super simple approach just check if you can resolve the hostname.
- taylorcooney 9y agoI want to be checking for errors after the '@' symbol, such as @gmial.com or @gmail.con
- stephenr 9y agoRight so as I said, do a hostname lookup: if you get a result (ie not nxdomain) then it's ok, if not, it isn't registered, is a non existent tld, or has no records, all of which mean mail will fail.