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

Copy Markdown View Source

Shared Swoosh delivery helper for built-in email providers.

Provider modules use this helper to translate DripDrop email payloads into a %Swoosh.Email{} and to normalize Swoosh adapter responses into the channel delivery contract.

Summary

Functions

Builds Swoosh adapter configuration from adapter credentials and config.

Delivers a rendered email payload through a Swoosh mailer configuration.

Functions

config(adapter, swoosh_adapter, keys)

@spec config(map(), module(), [atom()]) :: keyword()

Builds Swoosh adapter configuration from adapter credentials and config.

deliver(step, enrollment, adapter, config)

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

Delivers a rendered email payload through a Swoosh mailer configuration.