Level 104
There will be only one email created and sent, so there is not current_bcc_recipient - you are not iterating over the $emails array. If you need to create a unique link for each recipient, then send separate emails.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When sending an email with an array of bcc’s, how can I access the current bcc recipient email in the view?
$emails = ['email1@example.com', 'email2@example.com', 'email3@example.com'];
Mail::bcc($emails)->send(new SomeClass($var1, $var2));
Then in the view how can I access the current bcc email?
// in email view
<a href="some_url.com?email={{ the_current_bcc_email }}">Text</a>
Is this event possible? If so how?
Please or to participate in this conversation.