You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a paid Mailgun account, with a verified domain.
I can successfully send the Test Email from /admin/settings/email.
However, I can't send from my Controller, while my config is correct.
This is the error I get:
[web.INFO] [yii\mail\BaseMailer::send] Sending email "Test" to "[email protected]" {"memory":29395064}
[web.ERROR] [yii\symfonymailer\Mailer::sendMessage] Unable to send an email: Forbidden (code 401). {"memory":29915280}
Note: of course, I have used my own email address instead of [email protected].
Description
I have a paid Mailgun account, with a verified domain.
I can successfully send the Test Email from
/admin/settings/email
.However, I can't send from my Controller, while my config is correct.
This is the error I get:
Note: of course, I have used my own email address instead of [email protected].
And this is the code to send the email:
I also tried this instead:
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: