4 ms·
You actually should at least use regex to check some basic things. Like "@" "." or even just disallowed characters. As someone who sends a LOT of email for cus
by eric4smith 4y ago
You actually should at least use regex to check some basic things. Like "@" "." or even just disallowed characters.
As someone who sends a LOT of email for customers every week, a big percentage of our problem is incorrectly formatted emails. So we just don't even let them in these days.
People are forgetting that for services that have to send email it costs dearly to bounce.
Bounces decrease the quality of your list and you can get penalized by your email provider. By letting in stupid sh*t, you just are compromising yourself. So some simple regex that gets rid of the most egregious stuff is worth it.
- kingcharles 4y agoPlease don't check for a full-stop/period. It excludes those who have their email address directly on a TLD.
- sverhagen 4y agoIs that an existing cohort? I'm not saying it isn't, I've just not run across them.
- easrng 4y agoProbably not. http://ai./ http://ai./ has a website, but no emails AFAIK
- kingcharles 4y agohttps://mail.gnome.org/archives/evolution-list/2002-January/msg00466.html https://mail.gnome.org/archives/evolution-list/2002-January/...
- easrng 4y agoNo it doesn't. Those require a dot at the end. Without a dot, it's a hostname not a TLD.
- kingcharles 4y agohttps://mail.gnome.org/archives/evolution-list/2002-January/msg00466.html https://mail.gnome.org/archives/evolution-list/2002-January/...
- easrng 4y agoWithout a dot it won't always use the TLD. easrng@easrng-laptop:~$ echo -e "127.0.0.1\tai" | sudo tee -a /etc/hosts 127.0.0.1 ai easrng@easrng-laptop:~$ ping ai PING ai (127.0.0.1) 56(84) bytes of data. ^C easrng@easrng-laptop:~$ ping ai. PING ai (209.59.119.34) 56(84) bytes of data. ^C
- kingcharles 4y agoYou're right. I did some experiments too after your first reply. It's definitely inconsistent depending on what software you are using (as some software now bypasses your system resolver and uses HTTP DNS etc). I've known people who had email addresses on TLDs and they never had any problem receiving email (without using a final dot), so I'm not sure how the MX record is being resolved or how the SMTP connection is being made. It's very possible that the mail daemon is automatically adding a dot to the end of every hostname.
- tsimionescu 4y agoTechnically, without a dot at the end any domain name is a partially qualified domain name. Technically, 'gmail.com' should mean 'gmail.com.local.search.domain.' if your local search domain/zone is "local.search.domain."
- sverhagen 4y agoI think the case you are really making is for using the string validation (regex) to knock out clear or even obvious mistakes, as opposed to using a regex that everyone has to pass to proceed.
- eric4smith 4y agoYes.