laravel-dkim icon indicating copy to clipboard operation
laravel-dkim copied to clipboard

Emails not signed when queued

Open sanderkruger opened this issue 5 years ago • 1 comments

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 avatar Mar 13 '20 17:03 sanderkruger

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

sanderkruger avatar Mar 14 '20 17:03 sanderkruger