0

Email multiple BCC receivers.

Does anyone know what is wrong with this code?

let sender := userEmail();
let bcc := "receiver2@mail.com, receiver3@mail.com";
let receiver := "receiver1@mail.com";
let subj := Subject-textfield;
let txt := "";
let body := raw(RTF-field);
sendEmail({
    from: sender,
    to: receiver,
    bcc: bcc,
    subject: subj,
    text: txt,
    html: body
})

Only receiver 1 and receiver 3 getting an email. receiver 2 doesn't. (always the last and only one in line)

In other words, how do I send an email to multiple receivers?

3 replies

null
    • red_kite
    • 3 mths ago
    • Reported - view

    Hi Steven. Try to put all mail-adress in an array.

    let bcc := ["receiver2@mail.com", "receiver3@mail.com"];
    
      • Ninox partner
      • RoSoft_Steven.1
      • 3 mths ago
      • Reported - view

      Thanks, this works perfect.

      I use an email field with multiple recipients in it, separated by commas. I then use the split function to convert them to an array: let bcc := split(BCCMail,",")  Now it works.

    • Rafael Sanchis
    • Rafael_Sanchis
    • 3 mths ago
    • Reported - view

    Because emails are received in spam ? Some ideas

Content aside

  • 3 mths agoLast active
  • 3Replies
  • 47Views
  • 3 Following