Multiple attachments with SendEmail
How can I add more that 1 attachment with SendEmail - only ever had to sent with one beofre and all goo but now i need to add 2 files.
QuoteSentFlag := null;
let thisBody := first((select Quote_Chasing).xQuoteLetter);
let myAtt := QuoteImage;
let myEmail := userEmail();
thisBody := replace(thisBody, "{xFirst}", text(eContact));
thisBody := replace(thisBody, "{Customer Ref}", 'Customer Ref');
thisBody := replace(thisBody, "{Quote Description}", 'Quote Description');
thisBody := replace(thisBody, "{Quote Number}", text(QteNum));
thisBody := replace(thisBody, "{Quote Date}", text(QteDate));
sendEmail({
from: myEmail,
to: CustEmail,
subject: "Your promo/print quote" + QteNum + "from 118 Printgroup",
text: "Quote Updated",
html: thisBody,
attachments: myAtt
});
QuoteSentFlag := 1
Ive tried lines line
let myAtt := QuoteImage;
let myAtt2 := QuoteImage2;
attachments: myAtt
attachments: myAtt2
and a one liner
attachments : myAtt , myAtt2
and other variations but done't work?
can some give me a clue please
4 replies
-
Try
attachments: [myAtt, myAtt2]
Content aside
- Status Answered
- 1 yr agoLast active
- 4Replies
- 99Views
-
3
Following