SMTP transport adapter implementing ISmtpProvider.
Uses Jakarta Mail for SMTP communication. This adapter is positioned as a transport-level provider — independent of the email lib's higher-level abstraction (templating, job queuing, etc.).
Usage: (def provider (create-smtp-provider {:host "smtp.gmail.com" :port 587 :username "user@gmail.com" :password "app-password" :tls? true :from "no-reply@example.com"})) (send-email! provider {:to "recipient@example.com" :subject "Hello" :body "World"})
SMTP transport adapter implementing ISmtpProvider.
Uses Jakarta Mail for SMTP communication. This adapter is positioned as a
transport-level provider — independent of the email lib's higher-level
abstraction (templating, job queuing, etc.).
Usage:
(def provider (create-smtp-provider
{:host "smtp.gmail.com"
:port 587
:username "user@gmail.com"
:password "app-password"
:tls? true
:from "no-reply@example.com"}))
(send-email! provider {:to "recipient@example.com"
:subject "Hello"
:body "World"})(create-smtp-provider {:keys [host port username password tls? ssl? from]
:or {tls? false ssl? false}
:as config})Create an SMTP provider adapter.
Config keys: :host - SMTP server hostname (required) :port - SMTP server port (required) :username - SMTP auth username (optional) :password - SMTP auth password (optional) :tls? - Enable STARTTLS (default false) :ssl? - Enable SSL (default false) :from - Default From address (required) :ssl-trust, :check-server-identity? - TLS trust; see wagoe.external.schema/MailTls :retries, :retry-delay-ms, :cache, :circuit-breaker - see wagoe.external.shell.resilience/settings
Returns: SmtpProviderAdapter implementing ISmtpProvider
Create an SMTP provider adapter.
Config keys:
:host - SMTP server hostname (required)
:port - SMTP server port (required)
:username - SMTP auth username (optional)
:password - SMTP auth password (optional)
:tls? - Enable STARTTLS (default false)
:ssl? - Enable SSL (default false)
:from - Default From address (required)
:ssl-trust, :check-server-identity?
- TLS trust; see wagoe.external.schema/MailTls
:retries, :retry-delay-ms, :cache, :circuit-breaker
- see wagoe.external.shell.resilience/settings
Returns:
SmtpProviderAdapter implementing ISmtpProvidercljdoc 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 |