Liking cljdoc? Tell your friends :D

boundary.external.shell.adapters.smtp

SMTP transport adapter implementing ISmtpProvider.

Uses javax.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 javax.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"})
raw docstring

create-smtp-providerclj

(create-smtp-provider {:keys [host port username password tls? ssl? from]
                       :or {tls? false ssl? false}})

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)

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)

Returns:
  SmtpProviderAdapter implementing ISmtpProvider
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close