[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
smtpmail-async 1.0
From: |
John Wiegley |
Subject: |
smtpmail-async 1.0 |
Date: |
Mon, 18 Jun 2012 21:33:39 -0500 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin) |
* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- smtpmail-async 1.0,
John Wiegley <=