Skip to main content

Queue messages for msmtp

Project description

Script for queuing messages for sending with msmtp.


msmtpq <args>

Use just like msmtp or sendmail. pymsmtpq will queue the email, but WON’T SEND THEM. You will have to send them manually:

msmtpq --manage send

This allows you to control when emails are sent, allowing you to queue up emails when you don’t have Internet access.

Emacs configuration

This section describes how to use pymsmtpq with Emacs to queue emails and send asynchronously with msmtp and Emacs’s sendmail support.

Configure Emacs to use pymsmtp:

(setq message-send-mail-function 'message-send-mail-with-sendmail
      sendmail-program "~/bin/msmtpq")  ; Change the path as appropriate

Add a hook to flush the queue after sending:

(add-hook 'message-sent-hook
          (lambda ()
            (start-process "msmtpq-flush" nil "msmtpq" "--manage" "s")))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mir.msmtpq, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size mir.msmtpq-0.2.0.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View
Filename, size mir.msmtpq-0.2.0-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page