Closed iAmKevinMcKee closed 4 years ago
Maybe you have not restarted your queues and they are still making use of some old mail config?
You could try to create a new job, let it write to output of config('mail')
to the log file, and dispatch it.
I terminated and restarted horizon. Still seeing mailcoach emails go to log.
Here's the config('mail')
from a new job.
array (
'default' => 'ses',
'mailers' =>
array (
'smtp' =>
array (
'transport' => 'smtp',
'host' => 'smtp.mailtrap.io',
'port' => '2525',
'encryption' => NULL,
'username' => NULL,
'password' => NULL,
'timeout' => NULL,
'auth_mode' => NULL,
),
'ses' =>
array (
'transport' => 'ses',
),
'mailgun' =>
array (
'transport' => 'mailgun',
),
'postmark' =>
array (
'transport' => 'postmark',
),
'sendmail' =>
array (
'transport' => 'sendmail',
'path' => '/usr/sbin/sendmail -bs',
),
'log' =>
array (
'transport' => 'log',
'channel' => NULL,
),
'array' =>
array (
'transport' => 'array',
),
),
'from' =>
array (
'address' => 'kevin@kevinmckee.me',
'name' => 'Laravel',
),
'markdown' =>
array (
'theme' => 'default',
'paths' =>
array (
0 => '/Users/kevinmckee/Code/kevinmckee/resources/views/vendor/mail',
),
),
)
That's very strange. I'm thinking it's something specific to your app and not a bug in Mailcoach. Could you try installing it in a fresh copy of Laravel?
Is there anything else you can think of that I could try to debug? I just created this site a few days ago and there's nothing to it. It's a personal site with single page. If not for using mailcoach to get email subscribers, it would have been a Jigsaw static site.
I will try to spin up a new site and reinstall everything and check tonight, but please let me know if you can think of anything else.
Turns out my problem was that when I created the list, the MAIL_MAILER was 'log' so it set that value on the EmailList model. I didn't realize this setting was available in the UI.
I just had to go here and update the mailer:
I am trying to get Mailcoach installed and use SES as my driver.
I am able to send emails through SES outside of mailcoach (for example, the password reset email that comes standard with Laravel).
However, when I try to send any email with Mailcoach, it uses the log driver. For example, here is the result of my job from telescope. Note near the very end where the mailer is set to log.
Here is what I get when I run tinker and execute
config('mailcoach')
I have already run
php artisan config:clear
andphp artisan cache:clear
and I just cannot figure out how mailcoach is using the log driver.Thanks for your help.