Django Unable to Send Email

151 views
Skip to first unread message

yingi keme

unread,
Mar 31, 2018, 6:29:41 AM3/31/18
to Django users
Hi

I am getting a SMTPData Error when i try to send message from my django application

The Error it gives is this


smtplib.SMTPDataError: (550, b'5.7.60 SMTP; Client does not have permissions to send as this sender [BN6PO18UB1201.namprd18.prod.outlook.com]')

In My settings.py I have the following

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

EMAIL_HOST = 'smtp.office365.com'
EMAIL_HOST_USER = 'support@******.org'
EMAIL_HOST_PASSWORD = '**********'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'support@******.org'
SERVER_EMAIL = 'support@*******.org'

What could possibly be wrong?

Jani Tiainen

unread,
Mar 31, 2018, 6:53:34 AM3/31/18
to django...@googlegroups.com
Hi,

Error means that user which is used as sender of email is actually not permitted to send emails.

You need to check with your IT support is your support@******.org allowed to send emails through your smtp provider.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3772af22-43d6-4f4d-89cf-e41426fe9245%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yingi keme

unread,
Mar 31, 2018, 6:56:38 AM3/31/18
to django...@googlegroups.com
Okk. Thanks

I will consult with them

Yingi Kem
Reply all
Reply to author
Forward
0 new messages