If I will use an array of email IDs for $to parameter of wp_mail function, will it send different emails to all those email ids or will send one email with all the email ids as ‘to’?
1 comment
Comments are closed.
If I will use an array of email IDs for $to parameter of wp_mail function, will it send different emails to all those email ids or will send one email with all the email ids as ‘to’?
Comments are closed.
Yes, you can use an array of recipients:
To send different emails, you have to call
wp_mail()
multiple times.