A background mailer. Messages are queued and sent, one at a time, through the SMTP server in the :smtp configuration.
A background mailer. Messages are queued and sent, one at a time, through the SMTP server in the :smtp configuration.
(queue-message mailer message)Queue a postal message (:to, :subject, :body, ...) for sending, and return its UUID. :from defaults to the :smtp :from configuration value.
Queue a postal message (:to, :subject, :body, ...) for sending, and return its UUID. :from defaults to the :smtp :from configuration value.
(queued-message mailer uuid)The message queued under uuid, if it hasn't been sent yet.
The message queued under uuid, if it hasn't been sent yet.
(start-mailer)Start the mailer's sending thread and return the mailer, to pass to queue-message. When :smtp :enabled is false, messages are logged and kept instead of sent (so they can still be looked up by queued-message).
Start the mailer's sending thread and return the mailer, to pass to queue-message. When :smtp :enabled is false, messages are logged and kept instead of sent (so they can still be looked up by queued-message).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |