I'm using Google's smtp servers to send email using oauth2. If I want to send with a different 'from' address, Google lets me specify one. If the from address is a verified send-as alias for the account, Google will use it in the email. If it's not a verified send-as alias, Google will silently (I think) swap the from address.
Is there any way I can tell via API whether Google will use the supplied email address? Maybe I'm asking if there's any way I can tell if an email is a send-as address for an account, but I'm open to other solutions for the bigger problem of knowing whether Google will honor the supplied from address.