ex_postmark v1.3.0 ExPostmark.Adapters.Local

An adapter that stores the email locally, using the specified storage driver. This is especially useful in development to avoid sending real emails. You can read the emails you have sent using functions in the ExPostmark.Adapters.Local.Storage.

Example

# config/config.exs
config :sample, Sample.Mailer,
  adapter: ExPostmark.Adapters.Local

# lib/sample/mailer.ex
defmodule Sample.Mailer do
  use ExPostmark.Mailer, otp_app: :sample
end

Summary

Functions

deliver(email, config)

Delivers an email.

Callback implementation for ExPostmark.Adapter.deliver/2.

validate_config(config)