What this code does is iterate over an array of recipients. It also re-creates the mailable instance each time, which is super useful as it prevents the sending of another email to every previous recipient at every iteration through the loop. Just imagine the headache. π€
“But how do I send emails to just one recipient while also cc-ing and bcc-ing a few others?”, you might be wondering. Simply follow this example in the MyTestEmail class: