Download the PHP package openjournalteam/laravel-bangau-mail without Composer
On this page you can find all versions of the php package openjournalteam/laravel-bangau-mail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openjournalteam/laravel-bangau-mail
More information about openjournalteam/laravel-bangau-mail
Files in openjournalteam/laravel-bangau-mail
Package laravel-bangau-mail
Short Description Laravel 10 mail transport for an external HTTP delivery API.
License MIT
Informations about the package laravel-bangau-mail
Laravel Bangau Mail
Bangau is a Laravel 10 mail transport that sends Laravel mail through an external HTTP API. It uses Laravel's normal Mail and queued mail flow, and can fall back to a named SMTP mailer if the API cannot accept a message.
Install
Add the API secrets to .env:
Then add a mailer in config/mail.php and make it the default when appropriate:
The API receives from, to, cc, bcc, subject, text, html, attachments, and meta. Attachments are base64 encoded. A response is considered accepted only on HTTP 202; Bangau uses the first results[*].message_id as Laravel's transport-level message ID.
Set BANGAU_FALLBACK_ON_FAILURE=false or fallback_mailer to null if an API failure must fail the Laravel mail job instead of using SMTP.
API contract
POST {BANGAU_ENDPOINT}/sendmail with headers Accept: application/json, Content-Type: application/json, and X-API-Key. The response must return HTTP 202; a compatible response can include:
Use HTTPS and keep the API key in environment variables or a secret manager. Do not commit it to package configuration.
Bangau rejects non-HTTPS endpoints by default. Only for a trusted local/internal development endpoint, set BANGAU_ALLOW_INSECURE_ENDPOINT=true explicitly.
All versions of laravel-bangau-mail with dependencies
illuminate/mail Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
symfony/mailer Version ^6.0 || ^7.0 || ^8.0
symfony/mime Version ^6.0 || ^7.0 || ^8.0