Django mailing [Errno 97] Address family not supported by protocol

393 views
Skip to first unread message

PM Rakibul Hasan

unread,
Jan 15, 2020, 5:33:27 AM1/15/20
to Django users
My Error: 

OSError at /send_email/

[Errno 97] Address family not supported by protocol
Request Method: GET
Request URL: https://www.nimikh.com/send_email/?csrfmiddlewaretoken=vynGxVc4pHoAYcIEu3K4h6RYRbAJ4JwbXiFSG8rUFzg8N19rXtZpkuniq91NKalv&name=Rakib&email=rakibpathan07%40gmail.com&message=vdfhhf
Django Version: 2.2.7
Exception Type: OSError
Exception Value:
[Errno 97] Address family not supported by protocol
Exception Location: /opt/alt/python36/lib64/python3.6/socket.py in __init__, line 144
Python Executable: /home/mdosw63339bt/virtualenv/mysite/3.6/bin/python3.6
Python Version: 3.6.8
Python Path:
['/home/mdosw63339bt/mysite',
 '/opt/passenger-5.3.7-8.el6.cloudlinux/src/helper-scripts',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib64/python36.zip',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib64/python3.6',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib64/python3.6/lib-dynload',
 '/opt/alt/python36/lib64/python3.6',
 '/opt/alt/python36/lib/python3.6',
 '/home/mdosw63339bt/virtualenv/mysite/3.6/lib/python3.6/site-packages']

Wed, 15 Jan 2020 06:56:56 +0000






EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'mym...@gmail.com'
EMAIL_HOST_PASSWORD = 'Password'
EMAIL_PORT = 587

Integr@te System

unread,
Jan 15, 2020, 1:23:24 PM1/15/20
to django...@googlegroups.com
Hi Rakibul,

Plz check again your protocol in sending mail, not in http request.
Nice.


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/597edf4c-175c-4ebd-9017-933cfd54af7e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages