diff -r f784876cf8e5 -r 22b335774c80 mail.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mail.rst Mon Apr 20 18:52:20 2009 +0300 @@ -0,0 +1,31 @@ +-*- 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