GithubHelp home page GithubHelp logo

hostbrook / laravel-dkim Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 39 KB

Sign all outgoing emails in Laravel 9.x with a DKIM signature.

Home Page: https://github.com/hostbrook/laravel-dkim

License: MIT License

PHP 100.00%
dkim dkim-signature laravel

laravel-dkim's People

Contributors

fabio-desimone avatar henriklippke avatar hostbrook avatar jamestel avatar langemeijer avatar rdanklof avatar vitalybaev avatar

Watchers

 avatar

laravel-dkim's Issues

FIle not found issue

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

error trying to send email

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-----',

Wrong return type in Mailer.php

 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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.