PHPackages                             tobymaxham/laravel-dkim - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. tobymaxham/laravel-dkim

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

tobymaxham/laravel-dkim
=======================

This package can enable DKIM for your Laravel mails.

v3.0(1y ago)25662[1 PRs](https://github.com/TobyMaxham/laravel-dkim/pulls)MITPHPPHP ^8.0

Since Jan 9Pushed 1y ago3 watchersCompare

[ Source](https://github.com/TobyMaxham/laravel-dkim)[ Packagist](https://packagist.org/packages/tobymaxham/laravel-dkim)[ Docs](https://github.com/TobyMaxham/laravel-dkim)[ RSS](/packages/tobymaxham-laravel-dkim/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

TobyMaxham Laravel DKIM
=======================

[](#tobymaxham-laravel-dkim)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a11cd0654b7b3f10e5ecf77f8d4a1aa1bbbb195d8c0dc917df48958df647ec33/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f62796d617868616d2f6c61726176656c2d646b696d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/laravel-dkim)[![Total Downloads](https://camo.githubusercontent.com/eb6ad3a29e4af55154bd4921d683041f1b00651d5dd20e1dc008689826feaa2b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f62796d617868616d2f6c61726176656c2d646b696d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/laravel-dkim)

This package can be used to add a DKIM signature to your outgoing mails.

Instead of changing the default Laravel Mailer, Laravel DKIM will listen for the `\Illuminate\Mail\Events\MessageSending`Event and then call the `\TobyMaxham\LaravelDkimSigner\Listener\ApplyDkimSignature` Listener.

This keeps your Laravel Mailer behavior or any changes you have done inside your projects.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require tobymaxham/laravel-dkim
```

Usage
-----

[](#usage)

If you are using Laravel with auto discovery you have nothing to do. Be sure the package Service Provider `TobyMaxham\LaravelDkimSigner\DkimSignerProvider` is registered in your `config/app.php` file.

You can disable the signer by setting the `dkim_signer_enabled` config value to `false`.

```
