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