Very excited to be able to use for my gmail-based work email! (Our admin had disabled "less secure apps," so I needed oauthbearer authentication to be able to use mutt for IMAP access.)

Now to figure out how to send... I usually use msmtp, but I know I've got some python code to send email using Google's API lying around somewhere.

Mischief managed. Just POST the message to googleapis.com/upload/gmail/v1 with these headers...

Authorization: Bearer <access token>
Content-Type: message/rfc822
Content-Length: <message size>

... and you're good to go.

Follow

On second thought, Google appears to feel free to clobber message headers if you do this. (For example, "format=flowed" disappears.) Going back to mutt's built-in smtp transport instead.

Sign in to participate in the conversation
arktos.social

arktos.social is a private Mastodon instance. Contact the administrator to request an account.