0

Send mail with attachments

1. i want creat a data
let filename := 'No.' + ".pdf";
importFile(this, printAndSaveRecord(this, "專案"), filename);
'Image 2' := filename

2.send mail
let filename := 'No.' + ".pdf";
let MAIL := "enric19810316@gmail.com";
importFile(this, printAndSaveRecord(this, "專案"), filename);
sendEmail({
    from: userEmail(),
    to: MAIL,
    subject: "ORDER APPROVAL REQUEST",
    text: "您好,請查看您物件編號: " + 'No.' + "的完成進度",
    attachments: file(this, filename)
})

I could send it successfully before, but now there is a problem
Is there any solution? thanks

4 replies

null
    • Rafael Sanchis
    • Rafael_Sanchis
    • 3 mths ago
    • Reported - view

    Confirmed, there are problems as usual

    • cyan_silver
    • 3 mths ago
    • Reported - view

    sendEmail({
    from: “enric19810316@gmail.com”,
    to: '客戶'.電子郵件,
    主題:“感謝您的電子郵件”,
    文本:“我們收到了您的請求,要求獲取發票的另一份副本”,
    html:“一些帶有標記的文本”,
    附件:“報告1”
    })

     

    添加html數據后,短時間成功,但隨後再次出現[object Object]錯誤消息。

    • Mel_Charles
    • 3 mths ago
    • Reported - view

    I am on cloud version and emails with attachments dozens of times a day

    for customer confirmations/dispatch notices etc

    I have no issues at all.

     

     you don't say what your problem is?

    does it send but not get delivered 

    do you get an error if so what?

    • Rafael Sanchis
    • Rafael_Sanchis
    • 3 mths ago
    • Reported - view

    The "html" parameter is no longer optional and must be specified.  Then the problem is solved. 

     Just insert it like this and it will work again:
     html:"",

     

    Something like this needs to be communicated in a timely manner (!) so that users can adapt their scripts whenever they want and don't have to wonder why an important feature suddenly doesn't work anymore.

Content aside

  • 3 mths agoLast active
  • 4Replies
  • 82Views
  • 3 Following