DripDrop.Channels.Email.Mailgun (DripDrop v0.1.0)

Copy Markdown View Source

Mailgun email provider backed by Swoosh.

The provider sends through Swoosh.Adapters.Mailgun and verifies inbound Mailgun webhook signatures with the configured webhook signing key or API key.

Summary

Functions

Delivers a step for this provider.

Validates provider credentials against the required credential list.

Verifies a provider webhook signature.

Returns provider webhook routes.

Functions

deliver(step, enrollment, adapter)

@spec deliver(map(), map(), map()) :: {:ok, map()} | {:error, map()}

Delivers a step for this provider.

validate_credentials(credentials)

@spec validate_credentials(map()) :: :ok | {:error, [{atom(), binary()}]}

Validates provider credentials against the required credential list.

verify_signature(adapter, request)

@spec verify_signature(map(), map()) :: :ok | {:error, term()}

Verifies a provider webhook signature.

webhook_routes(adapter)

@spec webhook_routes(map()) :: [DripDrop.Channel.webhook_route()]

Returns provider webhook routes.