Hi, I’ve set up a basic Cockpit form in a Vue app using Gmail’s SMTP server to send email notifications, and I’m wondering if there’s a way to configure the mailer settings in such a way that Google recognizes it as a “secure app”? If I use the typical mailer settings-- as described in this Github thread– I need to allow my Gmail account to use “less secure apps” for the server to accept mail requests (which is not ideal, as it appears Google sometimes reverses this setting when it hasn’t been used for a while, and thus rejects requests.) I’ve read that PHPMailer 6.0+ has support for more secure authentication methods (e.g. XOAUTH2) and I’m wondering if it’s possible to configure Cockpit’s PHPMailer implementation in this way so as to not need to enable the “less secure app” flag? I may just end up using an alternative SMTP server altogether, but I figured I’d see if it’s even possible to go this route w/ Gmail.
Thanks for any guidance here!