-
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
[5.3] Apply global to email addres to CC and BCC #16705
Conversation
Makes sense to me. |
So, if you have
in your @MrAtiebatie you said the mail was sent to the BCC address you had provided. But you wanted it to be sent only to For example; when I'm having a form to request a testproduct, I often add the 'from' address as a BCC to the Thanks for your request message that would be sent to the visitor. |
that is indeed the purpose of the 'Universal To' address. To have a single email address to send all mail to in development. If you'll be sending mail to users in production, do not utilize the 'Universal To'. |
Would it be useful to add a headers to the message to show the original recipients? Something like |
Is there a way to disable this in an application? The mail service I'm using (SendGrid) doesn't allow duplicate emails. |
It probably wouldn't hurt to add this to the Mail Docs, because it's not clear right now. Could it be a bug that an e-mail has a 'To' and a 'CC' when using 'Universal To' in |
This is coffusing even in documentation, many of our team it was thinking that Something like this enables Universal To: Mail::cc('[email protected]')
->send(new Mailable($data); And this by pass Universal To: Mail::to('[email protected]')
->cc('[email protected]')
->send(new Mailable($data); |
As I was testing I noticed that the emails I was sending with Laravel were sent to the BCC address I provided. Unfortunately this wasn't the global "to email address" I set in the
config/mail.php
I have created this pull request to fix this issue. I hope this will be merged because that's the way how I interpreted "global to address" and I think I'm not the only one. Correct me if I'm wrong!