I want to send mail to more than one user at the same time. Using the recipient - row in my database that holds the emails.
The "mail_to" rows hold values as such: test1@gmail.com,test2@gmail.com. And since I am using Mailtrap for local development I am not sure that two emails are actually sent(In Mailtrap I am receiving one mail in my project inbox with: To: <test1@gmail.com, test2@gmail.com> ). Any ideas if my code works before deploying it in prod?
EDIT: I am not sure if thats how Mailtrap works or if the 'Mail' class does not split the string into individual recipients.