Swoosh v1.0.1 Swoosh.Adapter behaviour View Source
Specification of the email delivery adapter.
Link to this section Summary
Link to this section Types
Link to this section Functions
Specs
Specs
Link to this section Callbacks
Specs
deliver( %Swoosh.Email{ assigns: term(), attachments: term(), bcc: term(), cc: term(), from: term(), headers: term(), html_body: term(), private: term(), provider_options: term(), reply_to: term(), subject: term(), text_body: term(), to: term() }, config() ) :: {:ok, term()} | {:error, term()}
Delivers an email with the given config.
Specs
deliver_many( [ %Swoosh.Email{ assigns: term(), attachments: term(), bcc: term(), cc: term(), from: term(), headers: term(), html_body: term(), private: term(), provider_options: term(), reply_to: term(), subject: term(), text_body: term(), to: term() } ], config() ) :: {:ok, term()} | {:error, term()}
Delivers multiple emails with the given config