Bulk mailing and strange behavior of BBC type of copy

Hi all,
I’m trying to use sc_mail_send and BBC. I have to send mail to people without showing the other receivers of my mail.
This is the line code.

sc_mail_send([glo_mail_smtp_server], [glo_mail_smtp_user], [glo_mail_smtp_pass], $mail_from , ‘info@name.it’, {subject}, $message, “H”, $email_to , $type_copy , [glo_mail_smtp_port],[glo_mail_smtp_ssl]);

I switched the “To” e-mail variable to “Copies” and on “To” I used a fixed string like info@name.it . $type_copy is “BBC”.

Using two receiver 1 and 2 this is what happens.
On receiver 1 I see exactly what expected : To -> info@name.it and Bbc -> Receiver 1 mail
On receiver 2 I see only to and nothing else: To -> info@name.it

Does it make sense ?? Thanks

See picture

bbc.jpg

First: $type_copy is not “BBC” … Correct is “BCC” (Blind Carbon Copy).

Second: why not use SCs definitions?


$To = "info@name.it";
$Copies = "firstmail@domain.com, secondmail@domain.com, ..."
$Copies_Type = "BCC";

sc_mail_send([glo_mail_smtp_server], [glo_mail_smtp_user], [glo_mail_smtp_pass], $mail_from , $to, {subject}, $message, "H", $Copies , $Copies_Type, [glo_mail_smtp_port],[glo_mail_smtp_ssl]);

Hi Reinhard, thanks
I did a mistake on message text but on code it was right BCC.
$Copies is a multiselect field that as result give the series of mail address selected.
Also $To is a text field where the user write the to address.
Using echo to control all variable I’ve seen that all are correct but the result is different as shown on image.
I don’t know how to fix it or perhaps it’s a small bug.