Question

This the one host that i created I want to add another one host also.

EMAIL_USE_TLS = True`
EMAIL_HOST = 'smtp.gmail.com' 
EMAIL_PORT = 587 `
EMAIL_HOST_PASSWORD = 'developer@sangeeth' 
EMAIL_HOST_USER = 'developer.sangeeeth@gmail.com'
Was it helpful?

Solution

More than one EMAIL_HOST cannot be defined in django settings.py. Read more about email settings and sending emails in django. If you want to use different email hosts for sending emails, you can try python smtplib for sending emails instead of django's email feature.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top