Skip to Content
Jul 11, 2019 at 06:05 AM

How can we have multiple mail IDs' in the mail snippet of the XSJS

115 Views Last edit Jul 11, 2019 at 08:14 AM 2 rev

I was building an application which included the mail notification to multiple people and the user of the session. I have tried by including the mail id with comma separation, assigning multiple emails to the single variable and using a variable in "to " section. I am getting unidentified notation in the to section.With single mail id, code is working perfecty fine.

snippet :

usermail = " " + ""

var mail = new $.net.Mail({

sender: {address: ""},

to: [{ address : usermail }],

subject: "Test Details",

parts: [ new $.net.Mail.Part({

type: $.net.Mail.Part.TYPE_TEXT,

text: output,

contentType: "text/plain"


Thanks in advance