hostbrook / laravel-dkim

Sign all outgoing emails in Laravel 9.x with a DKIM signature.
https://github.com/hostbrook/laravel-dkim
MIT License
0 stars 2 forks source link

FIle not found issue #5

Open Bhagwan00 opened 4 months ago

Bhagwan00 commented 4 months ago

I added private key in env file. but still its giving error Illuminate\Contracts\Filesystem\FileNotFoundException File does not exist at path

arkdev1 commented 2 months ago

It's a logic error, troubleshooting it now.


// vendor/hostbrook/laravel-dkim/src/Mailer.php - Line 63

$privateKey = env('DKIM_PRIVATE_KEY') ? env('DKIM_PRIVATE_KEY', '') : config('mail.dkim_private_key', '');

        if ($privateKey != null)
            if (File::exists(base_path() . $privateKey)) $privateKey = File::get(base_path() . $privateKey);
arkdev1 commented 2 months ago

@Bhagwan00 see Pull Request #6