-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Universal To using CC and BCC, ends up with 3 mails #20075
Comments
Setting a global
|
Yeah, I'm using for development, and testing that sparkpost works ok. But setting |
Check #16705 |
Description:
When using "Universal TO" in config/mail.php:
and using MAIL_DRIVER=log, or smtp, or sparkpost, Laravel put your "universal to" also on the CC and BCC fields of the email. Then you end up with 3 copies of the same mail.
Steps To Reproduce:
return (new MailMessage)->subject('Invoice Paid')->markdown('mail.invoice.paid');
$user = App\User->create(...........)
$user->notify((new InvoicePaid($invoice));
using MAIL_DRIVER=log you would see the folowing in laravel.log:
with log everything is OK, but if you use smtp or sparkpost to test the emails you and up with triple the mails.
The text was updated successfully, but these errors were encountered: