juhasev / laravel-ses

A Laravel package that enables detailed tracking of emails sent via AWS SES. Supports tracking deliveries, opens, rejects, bounces, complaints and link clicks
17 stars 5 forks source link

Fix Mailer instance #5

Closed Jubeki closed 4 years ago

Jubeki commented 4 years ago

In Laravel 7.x is "swift.mailer" not a container anymore. See here: https://laravel.com/docs/7.x/upgrade#markdown-mail-template-updates

Therefore this change is required for it to be working correctly.

juhasev commented 4 years ago

Jubeki,

Where did you get 'SesMailer' on the SesMailer constructor call below. That would set the package to use fixed view and cause this instantiation to fail as constructor only accepts 4 parameters. I've taken constructor parameter out.

$mailer = new SesMailer(
                'SesMailer',
                $app['view'],
                $app['swift.mailer'],
                app('mailer')->getSwiftMailer(),
                $app['events']
            );