Sending mail through Gmail using Gnus

Oops! I guess my Googling skills aren't as good as I'd thought. Bill Clementson has a nice writeup of the whole Gnus/Gmail setup process.

Just because Googling didn't turn up a huge amount, here's what I did:

  1. Install gnutls-bin

     apt-get install gnutls-bin
  2. Configure Gnus to use smtpmail.el

     (require 'smtpmail)
     (push '("smtp.gmail.com" 587 "" "") smtpmail-starttls-credentials)
     (setq message-send-mail-function 'smtpmail-send-it
           gnus-agent-send-mail-function 'smtpmail-send-it
           smtpmail-smtp-server "smtp.gmail.com"
           smtpmail-smtp-service 587)
  3. Add your login details to ~/.authinfo:

      machine smtp.gmail.com login mark.h.triggs password ********

Err. I think that's all.