Can someone please tell me the correct syntax for this. I've been through all of API examples for every type of mail method, but they all assume you are mailing to known addresses as a string rather than addresses gathered from variables.
I have two email addresses in the fields identified as the variables 'address' and 'address2' below. I want both variables included in the 'cTo' parameter of mailForm(), separated by a semicolon. My syntax must be incorrect because only one of the addresses appears in the 'To' field when the e-mail client write message opens.
var address = this.getField("txtTPS.Atty.E-mail").value
var address2 = this.getField("txtTPS.Atty.ContactE-mail").value
var fileNo = this.getField("txtHDR.FileNo").value
var seller = this.getField("txtHDR.SName").value
var buyer = this.getField("txtHDR.BName").value
this.mailForm(true, address +"; " +address2, "","", fileNo + " " + seller + " sale to " + buyer, "");