From 112b668dffd57e06283c6b051d7445412417b0f6 Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Fri, 24 Dec 2021 16:23:50 +0100 Subject: [PATCH] Use use-package for smtpmail config --- bundle/bundle--email.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bundle/bundle--email.el b/bundle/bundle--email.el index caa4e9b6..27377908 100644 --- a/bundle/bundle--email.el +++ b/bundle/bundle--email.el @@ -21,13 +21,15 @@ (nnimap-server-port 143) (nnimap-stream starttls)))) -(require 'smtpmail) -(setq message-send-mail-function 'smtpmail-send-it - smtpmail-smtp-server "smtp.mailbox.org" - smtpmail-smtp-service 465 - smtpmail-stream-type 'tls - message-send-mail-function 'smtpmail-send-it - smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg")) +(use-package smtpmail + :ensure nil + :custom + (message-send-mail-function 'smtpmail-send-it) + (smtpmail-smtp-server "smtp.mailbox.org") + (smtpmail-smtp-service 465) + (smtpmail-stream-type 'tls) + (message-send-mail-function 'smtpmail-send-it) + (smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg"))) ;; (setq mml-secure-openpgp-signers '("86DB0F30F9F1661A54E21664C374817BE285268F")) ;; (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)