0

Email + Attachment Problem

Hello,

Im having a problem and would need help. I have the following code:

 

let r := closeRecord();
(Status := 1) and r;
Barcode := importFile(this, “http://www.barcodes4.me/barcode/c39/” + “Unique Code” + “.png”, “barcode.png”);
let myEmail := “ctmdt1@gmail.com”;
let myPdf := printAndSaveRecord(this, “RECEIPT”);
let myName := “RECEIPT” + “.pdf”;
importFile(this, myPdf, myName);
sendEmail({
from: myEmail,
to: “69918977@email.printnode.com”,
subject: “PRINT”,
text: “PRINT”,
attachments: file(this, myName)
})

 

The problem is that i get an error (only on iphone App, not on Web) that the file(attachement) is not found. For some reason the system correctly generates the attachement and sends the email via Ninox Clooud on Web, but when using it on iPhone App it says that the file is not found, somehow it seems like  the system did not generate the attachement in time for the email command. Do i have to change the order of some commands?

 

Thanks for any help!

Reply

null