Log in

Getting emails (e.g., registration / activation emails) to send

grwhumphriesGrant Humphries
  • 9 Jul

Hey hey

I've added the following to my settings/base.py file in a wagtail project. However, I'm not getting e-mails to send (i.e. activation emails).

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.webfaction.com'
EMAIL_HOST_USER = 'myemail@mydomain.net'
EMAIL_HOST_PASSWORD = LOCALPASSWORD
EMAIL_PORT = 587

Have I missed something?

grwhumphriesGrant Humphries
  • 9 Jul

Turns out this might actually be a Ubuntu problem. Will comment back if I get it sorted

nitelyEsteban Castro Borsani
  • 9 Jul

FWIW, some server providers block port 587 (DigitalOcean does that for example) and you have to ask them to open it. The django logs may give some clues.

Reply