How to setup Smtp and webfaction email host in a single settings.py file in django1.5.1?

StackOverflow https://stackoverflow.com/questions/19179012

  •  30-06-2022
  •  | 
  •  

Вопрос

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'
Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top