Checking if email is valid
dn
PythonList at DancesWithMice.info
Thu Nov 2 03:16:58 EDT 2023
On 02/11/2023 19.56, Chris Angelico via Python-list wrote:
> On Thu, 2 Nov 2023 at 17:47, Simon Connah <simon.n.connah at protonmail.com> wrote:
>>
>> My goal is to make a simple mailing list platform. I guess I could just send email to an address and if it bounces then I can remove it from the database. Thing is I'm not sure how close to a real email address an email has to be in order to be bounced. If it was completely wrong it might just swallowed up.
>>
>
> Every address is completely separate. There is no "closeness". Just
> send email to an address.
Agreed.
However, with names that are frequently misspelled or which are
commonly-spelled slightly differently, the 'trick' is to anticipate
problems and set up aliases which forward messages to the correct address*.
eg Kelvin -> Kevlin
Niel, Neal, Neale (etc) -> Neil
(in the same way that GoodLookingGuy at mydomain -> me,
or (more likely) MailAdmin -> me)
* however, this can end-up perpetuating the mistake, rather than
correcting...
--
Regards,
=dn
More information about the Python-list
mailing list