mindtwo / px-mail-laravel-driver
A project to integrate TX Mail as mail service in Laravel.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:proprietary
Requires
- php: ^8.0|^8.1|^8.2
- laravel/framework: ^9.0|^10.0|^11.0
Requires (Dev)
- larastan/larastan: ^2.0
- laravel/pint: ^1.2
- orchestra/testbench: ^8.21|^9.0|^10.0
README
Installation
You can install the package via composer:
composer require mindtwo/px-mail-laravel-driver
How to use?
Publish config
To publish the modules config file simply run
php artisan vendor:publish px-mail
This publishes the px-mail.php
config file to your projects config folder. Note: This step is optional as long as you complete the next step.
Configure the package
After that you should add the following keys to your .env-file:
- TX_MAIL_TENANT
- TX_MAIL_CLIENT_ID
- TX_MAIL_CLIENT_SECRET
This keys will auto populate the respective config values.
Inside your configuration you will also find the key:
stage
which will use your APP_ENV variable.
To send mails via Laravels Mail-Facade you need to add inside your apps mail.php mailers section:
'txmail' => [ 'transport' => 'txmail', ],
Then you need to set your apps default mailer to 'txmail'
or update your .env at the position MAIL_MAILER
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@mindtwo.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.