0

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

12replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Agus
    • Agus
    • 4 yrs ago
    • Reported - view

    Bump

    Like
  • ??

    Like
    • Agus
    • Agus
    • 4 yrs ago
    • Reported - view

    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.

    Like
  • Many thanks Agus, have you also an idea about how to attach multiple files?

    Like
    • Agus
    • Agus
    • 4 yrs ago
    • Reported - view

    i think you can probably add a comma and retype the attachments: "file(this, myName)" again.

    Like
  • I’ll try, thanks

    Like
  • 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

    Like
  • Hi,

    In order to attach more than one file the syntax needs to be an array:

    attachments: [myFile1, myFile2]

    That should work.

    Regards

    Like
  • Many many thanks Emanuel.

    I’ll try asap

    Max

    Like
  • Is the code valid just with plan or also to the basic account?

    Like
    • RoSoft_Steven
    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    I think E-mailing is only possible with Cloud version.

    Like
  • That's right, Ninox Cloud, Private Cloud or Ninox On-Premise

    Like
Like Follow
  • 4 yrs agoLast active
  • 12Replies
  • 4436Views