iwasherefirst2/laravel-multimail

Issue when provider is Sparkpost

Closed this issue · 1 comments

I created a provider as follows:

'provider' => [
        'sparkpost' => [
            'host' => 'smtp.sparkpostmail.com',
            'port' => 587,
            'encryption' => env('MAIL_ENCRYPTION'),
            'driver' => 'smtp',
        ]

as well as an email for that provider:

'no-reply@domain.xyz' => [
            'username' => 'no-reply@domain.xyz',
            'pass' => env('SPARKPOST_SECRET'),
            'from_name' => 'My name',
            'provider' => 'sparkpost',
        ]

But I get:
Failed to authenticate on SMTP server with username "no-reply@domain.xyz" using 2 possible authenticators. Authenticator LOGIN returned Swift_TransportException: Expected response code 235 but got code "535", with message "535 5.7.8 Authentication credentials invalid.

When using the default Mail facade with sparkpost all emails are sent, which lead me to think that "pass" key in the defined email is not being set up correctly.

Could you help me out to sort this?