
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
-
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.
-
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