I was configured email SMTP configurations in settings.py file as below
- EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
- EMAIL_USE_TLS = True
- EMAIL_HOST = 'smtp.gmail.com'
- EMAIL_HOST_USER = 'from mail'
- EMAIL_HOST_PASSWORD = 'password'
- EMAIL_PORT = 587
Now its working fine but my problem is after deploying the project how can I change any parameter like from_mail/password by user input form...Simply I need to update/change email or password.
.gitignore
so i not going to upload into repository. and if you want to take email and password from user, you just need tosend_mail
function to do that.settings.py
's credential not require there. – Devang Hingu