I tried the following settings in order to work M-x diary-mail-entries
but it fails. My question is how to put the correct settings in order to be able to work with M-x diary-mail-entries
in Emacs.
(setq user-full-name "My name")
(setq user-mail-address "my_user_name@gmail.com")
(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)
(require 'smtpmail)
I get the error
Sending via mail...
gnutls.c: [1] (Emacs) GnuTLS library not found
530 5.7.0 Must issue a STARTTLS command first. u9sm80344949wjy.37 - gsmtp
221 2.0.0 closing connection u9sm80344949wjy.37 - gsmtp
smtpmail-send-it: Sending failed: 530 5.7.0 Must issue a STARTTLS command first. u9sm80344949wjy.37 - gsmtp