4 ms·
There is relatively easy way to validate domain part - resolve and check that there is either an A or an MX record (but if you do resolve be prepared to wait -
by citrin_ru 4y ago
There is relatively easy way to validate domain part - resolve and check that there is either an A or an MX record (but if you do resolve be prepared to wait - I've seen domains DNS query to which takes many seconds of even minutes because of poor internet links or infrastructure). And the local part just not worth validating. May be reject non-ascii if your system doesn't support SMTPUTF8. Full RFC syntax is very complex for historic reasons and most simple regexps developers tend to use reject addresses people do use.
I try to use a email like me+www.service-name.com@example.com when possible but many services reject such perfectly valid address.