mardi 20 février 2018

gaierror while using send_mail django

I'm running into a gaierror [errno 8] when using send_mail for a contact form on my website hosted on my linode server. This is what I have in the setting.py file:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'example@domainhostedongsuite.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

The server is running apache 2, not sure if that has anything to do with it. Can someone help me out?




Aucun commentaire:

Enregistrer un commentaire