[Answer]-Django email through microsoft mail host SMTPSenderRefused

1👍

Here’s your problem:

sender = 'Jack <%s>' % settings.DEFAULT_FROM_EMAIL

Since you’ve got:

DEFAULT_FROM_EMAIL = 'Jack <info@jack.com>'

You end up with sender being:

Jack <Jack <info@jack.com>>

which isn’t a valid email address.

Leave a comment