Skip to content

Instantly share code, notes, and snippets.

@carld
Last active July 24, 2017 22:51
Show Gist options
  • Save carld/e6865486c41404bca8d2ce1324babdfa to your computer and use it in GitHub Desktop.
Save carld/e6865486c41404bca8d2ce1324babdfa to your computer and use it in GitHub Desktop.
send email from Emacs via googlemail
If 2FA is enabled for gmail:
1) Create an App password under Google, My Account, Sign-in and Security, App passwords
2) Copy the generated password before it disappears
In Emacs:
1) C-x m ; compose a new email in Emacs, use C-n and C-p to navigate between fields
2) C-c C-c ; send email
3) smtp ; select method of sending
4) smtp.googlemail.com ; enter the smtp server name
5) ; enter username
6) ; enter password using the generated app password if 2FA is enabled
7) yes ; save credentials to ~/.authinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment