Verify Emails

114 views
Skip to first unread message

Samuel Muiruri

unread,
Apr 7, 2018, 3:33:00 AM4/7/18
to django...@googlegroups.com
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.

Virus-free. www.avast.com

Jani Tiainen

unread,
Apr 7, 2018, 5:32:48 AM4/7/18
to django...@googlegroups.com
Hi,

Nothing prevents you to create django validator that does use that package.

Including functionality that package provides would add more dependencies to Django (pyDNS) which greatly reduces chances to get existence verification into Django itself.

And Django already has email validator built-in.

--
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...@googlegroups.com.
To post to this group, send email to django...@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.
For more options, visit https://groups.google.com/d/optout.

Anthony Flury

unread,
Apr 7, 2018, 2:09:22 PM4/7/18
to django...@googlegroups.com
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 : *Anthon...@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...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> <https://groups.google.com/d/msgid/django-users/CAJZFZXqyb9LQEmU_DHy1QToA6y1tmq3vwDBq28X%3DLYDxZgdstw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Hanne Moa

unread,
Apr 16, 2018, 8:12:19 AM4/16/18
to django...@googlegroups.com
If you do your own email-sending code you can break off the sending after the server sends "RCPT', that'll work regardless.

On 7 April 2018 at 14:27, 'Anthony Flury' via Django users <django...@googlegroups.com> wrote:
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 : *Anthon...@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+unsubscribe@googlegroups.com <mailto:django-users+unsubscrib...@googlegroups.com>.
To post to this group, send email to django...@googlegroups.com <mailto:django-users@googlegroups.com>.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages