from = "From:" mailbox-list CRLF sender = "Sender:" mailbox CRLF reply-to = "Reply-To:" address-list CRLF to = "To:" address-list CRLF cc = "Cc:" address-list CRLF bcc = "Bcc:" (address-list / [CFWS]) CRLF newsgroups
$ cat /etc/ssmtp/ssmtp.conf Mailhub=smtp.gmail.com:587 FromLineOverride=YES UseSTARTTLS=yes AuthUser=gavenkoa AuthPass=XXXXXX
; 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)
Update ~/..authinfo:
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
Just not use top quoting!