SMTPRecipientsRefused in django

when I try to send mail through django, I get the above error. Could you explain the reason for this error and how to avoid it?

+5
source share
4 answers

The reason is that the SMTP server refuses some recipients to which you send messages. The fix is ​​to not send email to these recipients, reconfigure the SMTP server to accept them, or find another SMTP server to use.

+5
source

. - Django . .

0

, "192.168.10.1" IP- , EMAIL_HOST . gmail, smtp Google. settings.py

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'your gmail account' eg xxxxx@gmail.com
EMAIL_HOST_PASSWORD = 'your gmail password'

smtp-, ,

Google.

SMTP-

NB:

0

I installed sendmail and followed this SO message to configure it.

0
source

All Articles