This email configuration specific for Gmail and Hosting
- Unlock Captha: https://accounts.google.com/DisplayUnlockCaptcha
- Change to active: https://www.google.com/settings/security/lesssecureapps
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your-password'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
FILE_UPLOAD_MAX_MEMORY_SIZE = 35000000
- Unlock Captha: https://accounts.google.com/DisplayUnlockCaptcha
- Change to active: https://www.google.com/settings/security/lesssecureapps
- Go to the 2-Step Verification: https://myaccount.google.com/signinoptions/two-step-verification/enroll-welcome
- Create app password: https://security.google.com/settings/security/apppasswords
- Use that password into
'EMAIL_HOST_PASSWORD'
EMAIL_PORT = 465
EMAIL_USE_SSL = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'use-apppasswords'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_SSL_KEYFILE = '/home/username/ssl/keys/keyname.key'
EMAIL_SSL_CERTFILE = '/home/username/ssl/certs/certname.crt'
FILE_UPLOAD_MAX_MEMORY_SIZE = 35000000