My PHP server is sending verification emails when customers sign up, so that they can verify their email address.
But sometimes gmail automatically disables less-secure apps, and I have to go into the settings and re-enable it so that phpmailer can connect again.
Also, the emails get through for a while and then show up as spam.
Is there some more modern/standard way of doing automatic emails for this purpose? I feel like phpmailer isn't working for me.
Does Google have some simple API where I can just pass the recipient address and the message body?