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

12 replies

null
    • Agus
    • 5 yrs ago
    • Reported - view

    Bump

    • maxvalentino
    • 5 yrs ago
    • Reported - view

    ??

    • Agus
    • 5 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.

    • maxvalentino
    • 5 yrs ago
    • Reported - view

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

    • Agus
    • 5 yrs ago
    • Reported - view

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

    • maxvalentino
    • 5 yrs ago
    • Reported - view

    I’ll try, thanks

    • maxvalentino
    • 5 yrs ago
    • Reported - view

    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

    • Emanuel_Neubert
    • 5 yrs ago
    • Reported - view

    Hi,

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

    attachments: [myFile1, myFile2]

    That should work.

    Regards

    • maxvalentino
    • 5 yrs ago
    • Reported - view

    Many many thanks Emanuel.

    I’ll try asap

    Max

    • Angelo_Santoro
    • 5 yrs ago
    • Reported - view

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

    • Ninox partner
    • RoSoft_Steven.1
    • 5 yrs ago
    • Reported - view

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

    • Emanuel_Neubert
    • 5 yrs ago
    • Reported - view

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

Content aside

  • 5 yrs agoLast active
  • 12Replies
  • 4459Views