0

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

null
    • Daniel_Berrow
    • 1 yr ago
    • Reported - view

    Try

    attachments: [myAtt, myAtt2]
      • Mel_Charles
      • 1 yr ago
      • Reported - view

       How thick am I ? - I can't believe it was that simple !!!

      Dead obvious when you think about it 😁

    • Ninox partner
    • RoSoft_Steven.1
    • 1 yr ago
    • Reported - view
      • Mel_Charles
      • 1 yr ago
      • Reported - view

       Thats great now I have multi attachments working I need to get a decent logo into final emails so will look at your thread in some depth - cheers 🙂

Content aside

  • Status Answered
  • 1 yr agoLast active
  • 4Replies
  • 99Views
  • 3 Following