Skip to content

Instantly share code, notes, and snippets.

@rlb3
Last active August 30, 2015 09:54
Show Gist options
  • Select an option

  • Save rlb3/122783 to your computer and use it in GitHub Desktop.

Select an option

Save rlb3/122783 to your computer and use it in GitHub Desktop.
.gnus.el
(load "starttls")
(load-library "smtpmail")
(setq user-mail-address "[email protected]")
(setq user-full-name "Robert Boone")
;; Configure incoming mail (IMAP)
(setq gnus-select-method '(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-authinfo-file "~/.authinfo")
(nnimap-stream ssl)))
;; Configure outbound mail (SMTP)
(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 "email" "password"))
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-default-smtp-server "smtp.gmail.com"
send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-service 587
smtpmail-auth-credentials '(("smtp.gmail.com" 587 "email" "password"))
smtpmail-debug-info t
smtpmail-debug-verb t)
(setq smtpmail-local-domain nil)
(setq gnus-permanently-visible-groups "gmail")
(executable-find starttls-program)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment