0

Sending email to multiple CCs

I need emails sent to multiple people but they are only being sent to one person in the CC list.

Here's my code, the email sends to the 'To:' person and the last person in the CC list (i.e. James & Terry) but no one else. The person in the 'BCC:' to the 'Created_By.email' doesn't receive it either.

sendEmail({

                from: userEmail(user()),

                to: "james.xxx@email.co.uk",

                cc: "lyndsay.xxx@email.co.uk";

                "Paul.xxx@email.co.uk";

                "paul.2xx@email.co.uk";

                "Jill.xxx@email.co.uk";

                "terry.xxx@email.co.uk",

                bcc: Created_By.Email,

                subject: "Subject1 " + ModNumber + " " + Mod_Title,

                text: "Text here",

                html: "text here<br/><br></h1><i>Thanks</i>",

                attachments: Mod_Note

})

2 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 11 hrs ago
    • Reported - view

    They need to be in an array:

    cc:["lyndsay.xxx@email.co.uk","Paul.xxx@email.co.uk","paul.2xx@email.co.uk","Jill.xxx@email.co.uk","terry.xxx@email.co.uk"],

      • Lyndsay_Skelhorn
      • 11 hrs ago
      • Reported - view

       Thank You !

      That worked perfectly.

Content aside

  • Status Answered
  • 11 hrs agoLast active
  • 2Replies
  • 10Views
  • 2 Following