Blog de Contraslash (Legacy)

Configurar SMTP con Gmail y Django

March 14, 2016

Configurar SMTP con Gmail y Django

Agreguemos esto al settings.py

EMAIL_HOST = 'smtp.gmail.com'  
EMAIL_HOST_USER = 'myname@gmail.com'  
EMAIL_HOST_PASSWORD = 'mypassword'  
EMAIL_PORT = 587  
EMAIL_USE_TLS = True  
DEFAULT_FROM_EMAIL = 'nmyname@gmail.com'