* What is it
Using the new async.el, it's now possible to send SMTP mails with Emacs in the
background in just 12 lines of code:
(defun async-smtpmail-send-it ()
(async-start
`(lambda ()
(require 'smtpmail)
(with-temp-buffer
(insert ,(buffer-substring-no-properties (point-min) (point-max)))
;; Pass in the variable environment for smtpmail
(async-inject-environment "\\`\\(smtpmail\\|\\(user-\\)?mail\\)-")
(smtpmail-send-it)))
'ignore))
Now you can send e-mail without waiting, and without relying on system
services like sendmail.
* Where to get it
The current version is always here: https://github.com/jwiegley/emacs-async
_______________________________________________
gnu-emacs-sources mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources