email Attachments
Hi, how can I add cc and bcc in an email?
And how can I add more than one attachments at the email?
thanks
Max
12 replies
-
Bump
-
??
-
Sorry was just bumping this thread to the top so people can see it. I did find a fix for your issue.
let myPdf := printAndSaveRecord(this, "Print Layout Name");
let myName := "Name of file.pdf";
importFile(this, myPdf, myName);
let myEmail := userEmail(user());
sendEmail({
from: "test@email.com",
to: "test@email.com",
cc: "test@email.com",
bcc:"Test@email.com",
subject: "Here's a lead please follow up on " + 'Company Name',
text: "Please contact Lead attached" + Status,
html: "<h1>Here's a lead please follow up</h1><i>Please contact Lead attached </i>",
attachments: file(this, myName)
})
try to use this code on a button and edit out some things for your choice.
-
Many thanks Agus, have you also an idea about how to attach multiple files?
-
i think you can probably add a comma and retype the attachments: "file(this, myName)" again.
-
I’ll try, thanks
-
Hi,
I do not create a pdf I need to send imported pdf stored in two or three different "Image Field" called File1, File2 etc..
I tried and it works but only with one file setted as in the following code, how can I add the other files?
let myFile1 := File1;
let myFile2 := File2;
let myEmail := userEmail(user());
sendEmail({
from: "test1@email.com",
to: "test2@email.com",
cc: "test3@email.com",
bcc: "test1@email.com",
subject: "Here's a lead please follow up on ",
text: "Please contact Lead attached",
html: "<h1>Here's a lead please follow up</h1><i>Please contact Lead attached </i>",
attachments: myFile1
})many thanks
-
Hi,
In order to attach more than one file the syntax needs to be an array:
attachments: [myFile1, myFile2]
That should work.
Regards
-
Many many thanks Emanuel.
I’ll try asap
Max
-
Is the code valid just with plan or also to the basic account?
-
I think E-mailing is only possible with Cloud version.
-
That's right, Ninox Cloud, Private Cloud or Ninox On-Premise
Content aside
- 5 yrs agoLast active
- 12Replies
- 4458Views