I have string that contains comma separated email addresses.
I need to add them to my mailer object ($mailin) using the addBcc method. The object supports method chaining.
I have tried to echo
in a for loop to achieve what I wanted but as expected, it did not work. It gave me 500 error.
Desired result;
$mailin = new Mailin('my@mail.com', 'apikey');
$mails = "a@example.com, b@example.com";
$mailin->
addBcc('a@example.com')->
addBcc('b@example.com')->
Thank you.