python - Django mail_admins vs send_mail -


i can django application report server errors email using obvious settings :

debug = false  admins = (('name','email'),) managers = (('name','email'),)  email_host = 'ip address' email_host_user = 'user' email_port = 25 email_host_password = 'pwd' server_email = 'server-email' 

yet reason, when try use send_email() returns either authentication errors if try without tls, or "you don't have permission send sender" if use tls. can't understand why error reporting works, , send_email doesn't... uses same settings default.

any suggestions ?

there 2 settings affect 'from' email address different types of emails.

it looks if have set server_email, make sure have set default_from_email well.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -