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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
96
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
-*- outline -*-
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
* Sending email via gmail in emacs.
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
; install starttls from here (no need for patch)
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
; http://josefsson.org/emacs-smtp-starttls.html
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
(setq send-mail-function 'smtpmail-send-it
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
   message-send-mail-function 'smtpmail-send-it
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
   smtpmail-starttls-credentials
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
   '(("smtp.gmail.com" 587 nil nil))
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
   smtpmail-auth-credentials
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
   (expand-file-name "~/.authinfo")
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
   smtpmail-default-smtp-server "smtp.gmail.com"
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
   smtpmail-smtp-server "smtp.gmail.com"
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
   smtpmail-smtp-service 587
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
   smtpmail-debug-info t
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
   starttls-extra-arguments nil
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
   smtpmail-warn-about-unknown-extensions t
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
   starttls-use-gnutls nil)
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
machine smtp.gmail.com login [your name]@gmail.com password [your password]
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
And finally download, unzip, make and install startttls:
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
http://josefsson.org/emacs-smtp-starttls.html
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
See
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
  http://justinsboringpage.blogspot.com/2009/02/sending-email-via-gmail-in-emacs.html
22b335774c80 Setup gmail.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
  http://obfuscatedcode.wordpress.com/2007/04/26/configuring-emacs-for-gmails-smtp