Download the PHP package xiaohuilam/http-mail-driver without Composer
On this page you can find all versions of the php package xiaohuilam/http-mail-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xiaohuilam/http-mail-driver
More information about xiaohuilam/http-mail-driver
Files in xiaohuilam/http-mail-driver
Package http-mail-driver
Short Description A Mail driver that sends the email in a json format to a supplied endpoint
License MIT
Homepage https://github.com/skyracer2012/http-mail-driver
Informations about the package http-mail-driver
Laravel HTTP mail driver
This package gives your the ability to send emails via HTTP requests. This is useful for sending emails via Mailchannels and their Cloudflare Workers partnerships but can be used for other applications. Note: There is currently no support for attachments due to Mailchannels not supporting them via their transactional message api.
Installation
You can install the package via composer:
After that, please set the value HTTP_MAIL_URL
in your .env
file to the URL of your HTTP Mail endpoint.
You should also define the HTTP_MAIL_KEY
in your .env
file which will be used to authenticate your requests in the Authorization header.
Optionally you can also add DKIM data, which is useful for the mailchannels integration. See the config entry for further information. Make sure this matches your mail sender configuration to avoid dmarc issues!
Next should should add the http
entry to your config/mail.php
file under the mailers
array.
Now you can set the default mailer to http
in your .env
file.
Cloudflare Mailchannel integration
:warning: Mailchannels now enforces Domain Lockdown™: Please create DNS record according to their help center article!
This package was made to work in combination with the Cloudflare Worker Mailchannels partnership. To use this, deploy a worker with the code of this gist: https://gist.github.com/skyracer2012/54e85953162f24ac8f8e0a0fa747f1e3
Credits
- skyracer2012
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of http-mail-driver with dependencies
illuminate/support Version >=10.0
symfony/mailer Version >=6.0
guzzlehttp/guzzle Version >=7.5