I have a code that sends an email, it worked about 2 weeks ago. Now when I want to send an email I get this error (535, b’5.7.8 Error: authentication failed: authentication failure ').
The funny thing is with this email no error appears but the emai is not sent as expected. If the receiver’s email is from gmail the email sents, but in office it doesnt.
If I change the email from settings.py to another emails of mine like info@divusx.com the error from above appears. Something is really weird here.
yeah I already did that, the problem was that the email there was just delivered to a receiver who has a gmail adress. In outlook the mail doesnt deliver.
As you move into production make sure you have the email authentication setup and tested.
I highly recommend using a transactional email service provider. These types of platforms offer email service geared towards notification type email delivery. There is a popular project called Anymail that makes it straightforward to use a transactional email service provider