binary-cats / laravel-mail-helpers
A Laravel package to add some necessary email helpers
Requires
- illuminate/support: ^6.0|^7.0|^8.0
- symfony/dom-crawler: ^4.0|^5.0
- tijsverkoyen/css-to-inline-styles: ^2.0
Requires (Dev)
- phpunit/phpunit: ^7.0|^8.0|^9.0
This package is auto-updated.
Last update: 2024-10-22 00:27:21 UTC
README
Small Laravel package adds a collection of email helpers
Installation and usage
This package requires PHP 7 and Laravel 5.6 or higher.
php composer require binary-cats/laravel-mail-helpers
and then publish the config:
php artisan vendor:publish --provider="BinaryCats\LaravelMailHelpers\HelpersServiceProvider"
config will add mail-helpers.php
to your config
folder.
Configuration
Right out of the box the following classes are enabled:
CarbonCopy
Add all the emails in mail-helpers.cc
to all emails sent. None by default.
BlackCarbonCopy
Add all the emails in mail-helpers.bcc
to all emails sent. None by default.
InlineCss
Apply inline CSS style to the HTML body of your message. This results in a larger email size, however, it appears that inline styles are respected way more by any email client
SenderOverwrite
Whenever you are sending emails from a subdomain (like, mg.example.com
) but your from is a root domain (example.com
) some mail servers consider that spoofing and reject the envelope with 550 Verification failed for <...> Sender verify failed
or the likes.
Resetting the sender may alleviate that problem.
By default it is set to the same value as the mail.from
config key.
Testing
Run the tests with:
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email info@binarycats.io instead of using the issue tracker.
Credits
Support us
Binary Cats is a web service agency based in Roselle, Illinois.
Does your business depend on our contributions? Reach out! All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
License
The MIT License (MIT). Please see License File for more information.