Can someone explain why sending mail via smtp.gmail.com:587 still works?

I have a PHP script which is using credentials of one gmail account to send emails with username/password. And it’s able to send emails.

We’ve created another Gmail account, using the same script with new credentials fails.

I’ve rewritten it in Python to have a more familiar setup, and again, one account works, and new one doesn’t.

The problem is that this type of authentication is discontinued by Google. I remember changing my scripts 1 or 2 years ago to use OAUTH. Now I’ve found some article in Google KB stating it’s discontinued from May 1, 2025.

Can someone explain why old method still works, and maybe whether it’s still possible to somehow use this old username/password authentication to send mails?