email macro - how to send email to multiple recipients

Hi,

​I tried to use the email macro to send email, however I only can send email to the first recipient. The rest of the recipient did not receive email. Can someone kindly help? Thanks.

Below is the macro:

$mail_to = $email_to;$email_to2;
$mail_copies = $email_cc;$email_cc2;

sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
$mail_copies,
$mail_tp_copies,
$mail_port
);

I would change it to mail to 1 person. And put the other BCCs on the copies line.

$mail_to = $email_to;
$mail_copies = $email_to2;$email_cc;$email_cc2;

the issue is it does not work if I put multiple recipients.

I even tried to use , instead of ; also not working.

Have you tried the code I pasted?
Ooften these macros can only have 1 email in the initial SEND TO box or it errors out.

Yes. I have tried putting 1 email address in “TO” and multiple email addresses in “CC” but it is not working.

​It seems to work only if I put 1 email address in “TO” and [LEFT][SIZE=13px]1 email address in “CC”[/SIZE][/LEFT] .