ex_postmark v1.3.0 ExPostmark.Adapters.Postmark

An adapter that sends email using the Postmark API. For reference: Postmark API docs

Example

# config/config.exs
config :sample, Sample.Mailer,
  adapter:        ExPostmark.Adapters.Postmark,
  server_api_key: "my-api-key"

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

Summary

Functions

body(email)
deliver(email, config)

Delivers an email.

Callback implementation for ExPostmark.Adapter.deliver/2.

validate_config(config)