Y
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
hn_throwaway_99
1217 days ago
FWIW the linked library does that,
https://github.com/dominicsayers/isemail/blob/master/is_emai...
link
gorm
1217 days ago
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.
link