vitalybaev / laravel-dkim

Laravel 5 MailServiceProvider decorator, providing sign outgoing emails with DKIM
MIT License
31 stars 20 forks source link

Emails not signed when queued #18

Open sanderkruger opened 4 years ago

sanderkruger commented 4 years ago

I seems that the DKIM signing classes are not used when a mail is dispatched to the queue. Even writing a job that sends an email will not result in signed mail.

How can this plugin be changed so that queued messages are also using the classes that add the DKIM signature?

sanderkruger commented 4 years ago

Whoops, turns out the problem is not with the plugin, but with the referencing of the private key. In .env I used a relative path for the location of the private DKIM key. This worked fine for sending emails directly from the http process. But cron works from a different basepath, so the private key could not be found. Use an absolute path. Perhaps an idea to put this in the readme.md