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
  •  | 
  •  

Pergunta

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'
Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top