No announcement yet.

Bulk mailing and strange behavior of BBC type of copy

  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 , '', {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 . $type_copy is "BBC".

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

    Does it make sense ?? Thanks

    See picture
    Attached Files

  • #2
    First: $type_copy is not "BBC" ... Correct is "BCC" (Blind Carbon Copy).

    Second: why not use SCs definitions?

    PHP Code:
    $To "";
    $Copies ",, ..."
    $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]); 
    Best regards: - Reinhard -

    I use ScriptCase 8 Enterprise Edition, Version 8.(latest)


    • #3
      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.