hostbrook / laravel-dkim Goto Github PK
View Code? Open in Web Editor NEWSign all outgoing emails in Laravel 9.x with a DKIM signature.
Home Page: https://github.com/hostbrook/laravel-dkim
License: MIT License
Sign all outgoing emails in Laravel 9.x with a DKIM signature.
Home Page: https://github.com/hostbrook/laravel-dkim
License: MIT License
I added private key in env file. but still its giving error Illuminate\Contracts\Filesystem\FileNotFoundException File does not exist at path
I've just installed your package but I'm getting an error Unable to load DKIM private key: error:1E08010C:DECODER routines::unsupported {"exception":"[object] (Symfony\\Component\\Mime\\Exception\\InvalidArgumentException(code: 0): Unable to load DKIM private key: error:1E08010C:DECODER routines::unsupported at /app/vendor/symfony/mime/Crypto/DkimSigner.php:47)
, any ideas on what the problem may be?
I have double-checked and my config is exactly as you said in your docs.
'dkim_selector' => 'website',
'dkim_domain' => '******.com',
'dkim_passphrase' => '',
'dkim_private_key' => '-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA8Hbh9KEG0d5sfFIT/1ym2bphI5y/iK2+dz6Yf4nydqmTvCUJ
***omitted for security***
f7jY+uvqTirSH3Plg4g8TT8+GMkVNBf3xiEJZhntFg45IfGhObE+vNI=
-----END RSA PRIVATE KEY-----',
TypeError
HostBrook\LaravelDkim\Mailer::send(): Return value must be of type ?Illuminate\Mail\SentMessage, string returned
at vendor/hostbrook/laravel-dkim/src/Mailer.php:30
public function send($view, array $data = [], $callback = null): ?SentMessage
{
if ($view instanceof MailableContract) {
return $this->sendMailable($view);
}
I found these lines in sendMailable:
protected function sendMailable(MailableContract $mailable)
{
return $mailable instanceof ShouldQueue
? $mailable->mailer($this->name)->queue($this->queue)
: $mailable->mailer($this->name)->send($this);
}
and in my case (ShouldQueue) it returns string, as I see.
laravel 10.23.0
Maybe we can remove ?SendMessage to fix this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.