Sending emails using python doesn't work anymore

Verhagen Verhuur 0 Reputation points
2024-09-26T08:15:43.5066667+00:00

several month ago I developed a code that automatically sends out emails to my tenants regarding a debt using python coding. This has worked fine until this afternoon, ever since I get the following error:

(535, b'5.7.139 Authentication unsuccessful, basic authentication is disabled. [FR4P281CA0031.DEUP281.PROD.OUTLOOK.COM 2024-09-25T17:41:43.800Z 08DCDD1E51786FEA]')

If I look it up it tells me I have to get involved with OAuth, but I am not familiar with this and I don't really understand this. In the attachment I give a code snippet from the internet that gives the same error as my own code does.

could someone help me please.

kind regards

Kevin

Screenshot 2024-09-25 at 19.53.20

Outlook
Outlook
A family of Microsoft email and calendar products.
3,815 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,896 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.