Skip to content

Add Lettermint mail transport - #353

Open
sandervanhooft wants to merge 1 commit into
ploi:mainfrom
sandervanhooft:add-lettermint-mailer
Open

Add Lettermint mail transport#353
sandervanhooft wants to merge 1 commit into
ploi:mainfrom
sandervanhooft:add-lettermint-mailer

Conversation

@sandervanhooft

Copy link
Copy Markdown
Contributor

Adds support for Lettermint as a mail provider via the official lettermint/lettermint-laravel package.

Why

Setting MAIL_MAILER=lettermint currently fails with Mailer [lettermint] is not defined., because MAIL_MAILER must name an entry in config/mail.php. Any code path that sends mail (e.g. resending the email verification notification) then returns a 500.

Changes

  • Require lettermint/lettermint-laravel (^2.2), which registers the lettermint transport
  • Add a lettermint mailer to config/mail.php
  • Add a lettermint entry to config/services.php, reading LETTERMINT_PROJECT_TOKEN (falls back to LETTERMINT_TOKEN)
  • Add a test asserting the lettermint mailer resolves to the Lettermint transport

Existing setups are unaffected; the default mailer is unchanged.

Usage

MAIL_MAILER=lettermint
LETTERMINT_PROJECT_TOKEN=your-project-token

Install lettermint/lettermint-laravel and register a lettermint mailer so
MAIL_MAILER=lettermint can be used. The token is read from
LETTERMINT_PROJECT_TOKEN (falling back to LETTERMINT_TOKEN).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant