Hacker News new | ask | show | jobs
by gorm 1217 days ago
Nearly correct. You should also do a DNS lookup on $2 and check if it has either a MX record or an A record before trying to send it.
1 comments

It looks like it only check for a MX, but email could might be delivered with just an A record and without a MX record I think.