mail.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 20 Apr 2009 18:52:20 +0300
changeset 96 22b335774c80
child 259 7678cb1dcc23
permissions -rw-r--r--
Setup gmail.

-*- outline -*-

* Sending email via gmail in emacs.

; install starttls from here (no need for patch)
; http://josefsson.org/emacs-smtp-starttls.html

(setq send-mail-function 'smtpmail-send-it
   message-send-mail-function 'smtpmail-send-it
   smtpmail-starttls-credentials
   '(("smtp.gmail.com" 587 nil nil))
   smtpmail-auth-credentials
   (expand-file-name "~/.authinfo")
   smtpmail-default-smtp-server "smtp.gmail.com"
   smtpmail-smtp-server "smtp.gmail.com"
   smtpmail-smtp-service 587
   smtpmail-debug-info t
   starttls-extra-arguments nil
   smtpmail-warn-about-unknown-extensions t
   starttls-use-gnutls nil)

machine smtp.gmail.com login [your name]@gmail.com password [your password]

And finally download, unzip, make and install startttls:

http://josefsson.org/emacs-smtp-starttls.html

See

  http://justinsboringpage.blogspot.com/2009/02/sending-email-via-gmail-in-emacs.html
  http://obfuscatedcode.wordpress.com/2007/04/26/configuring-emacs-for-gmails-smtp