why not use an email validator provided by Django ?
https://docs.djangoproject.com/en/2.0/ref/validators/#emailvalidator
The problem with the pypi module is that to validate that an email
exists it simply looks for server in DNS (which is slightly better than
the Django validator), but that doesn't mean that the :
* Email server will accept emails from you - or your service
* or that the user exists on that server ( even if the server exists).
The only real way to validate that an email server is entirely valid is
to send an email to it, asking for a reply. Email parsing will only go
so far.
In theory there is a defined protocol to allow clients to query email
servers for is valid email addresses - but most servers are set to
ignore those requests - for obvious reasons.
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*
On 07/04/18 08:31, Samuel Muiruri wrote:
There's a python package for validating emails exists
"validate_emails" https://pypi.python.org/pypi/validate_email think it
would be useful to include it's features inside django so you can
parse if emails exists before sending so you only send emails to those
emails that *do *exists and also use it to get back those that don't
so you can remove them from your list like dummy emails provided to
your subscription page.
--
Best Regards,
Samuel Muiruri.
Student in Machine Learning & a veteran web developer.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAJZFZXqyb9LQEmU_DHy1QToA6y1tmq3vwDBq28X%3DLYDxZgdstw%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAJZFZXqyb9LQEmU_DHy1QToA6y1tmq3vwDBq28X%3DLYDxZgdstw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/b2ad280e-fac2-f95f-d860-194a3046e6c8%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.