|
1 | 1 | # HELO Laravel
|
| 2 | + |
| 3 | +[](https://packagist.org/packages/beyondcode/helo-laravel) |
| 4 | + |
| 5 | +[](https://scrutinizer-ci.com/g/beyondcode/helo-laravel) |
| 6 | +[](https://packagist.org/packages/beyondcode/helo-laravel) |
| 7 | + |
| 8 | +The helper package to add additional debug information from Laravel to your [HELO](https://usehelo.com) mails. |
| 9 | + |
| 10 | +## Documentation |
| 11 | + |
| 12 | +To install this package, require it via composer: |
| 13 | + |
| 14 | +```bash |
| 15 | +composer require --dev beyondcode/helo-laravel |
| 16 | +``` |
| 17 | + |
| 18 | +You can also publish the package configuration using: |
| 19 | + |
| 20 | +```bash |
| 21 | +php artisan vendor:publish --provider="BeyondCode\HeloLaravel\HeloLaravelServiceProvider" |
| 22 | +``` |
| 23 | + |
| 24 | +This will create a config file called `helo.php` with the following content: |
| 25 | + |
| 26 | +```php |
| 27 | +<?php |
| 28 | + |
| 29 | +return [ |
| 30 | + /** |
| 31 | + * This flag determines if you want to send additional SMTP headers that will contain the debug output that HELO |
| 32 | + * makes use of. |
| 33 | + * By default, this is only the case when your application is in debug mode. |
| 34 | + */ |
| 35 | + 'is_enabled' => env('HELO_ENABLED', env('APP_DEBUG')), |
| 36 | +]; |
| 37 | +``` |
| 38 | + |
| 39 | +## Using the package |
| 40 | + |
| 41 | +When the package is enabled in your Laravel application, all mailables that you send via your application will contain additional SMTP headers with debug information, that [HELO](https://usehelo.com) will display in the UI. |
| 42 | +Please refer to the HELO documentation in order to setup your application to send mails to HELO. |
| 43 | + |
| 44 | +Once HELO accepts emails from your application, you can try if the package works, using the built-in test command: |
| 45 | + |
| 46 | +``` |
| 47 | +php artisan helo:test |
| 48 | +``` |
| 49 | + |
| 50 | +A test message should appear in your HELO UI containing additional debug information: |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +### Changelog |
| 55 | + |
| 56 | +Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. |
| 57 | + |
| 58 | +## Contributing |
| 59 | + |
| 60 | +Please see [CONTRIBUTING](CONTRIBUTING.md) for details. |
| 61 | + |
| 62 | +### Security |
| 63 | + |
| 64 | +If you discover any security related issues, please email [email protected] instead of using the issue tracker. |
| 65 | + |
| 66 | +## Credits |
| 67 | + |
| 68 | +- [Marcel Pociot](https://github.com/mpociot) |
| 69 | +- [All Contributors](../../contributors) |
| 70 | + |
| 71 | +## License |
| 72 | + |
| 73 | +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
0 commit comments