0

Can I send a email with the attached file from a specific record

Hello

I used the function importFile (see example code) and that works well!
In a other step I want to send emails to the customer with the attached file of a specific record (see previous action).

Is that possible - send also the attachement with the email.
The email function works well!

Greetings

Arjan G

 

++++ example code  ++

Bijlagen := null;
let myLayout := "ContractStandaard2018";
let myNumber := cnt(files(this)) + 1;
let myName := ContractNr + " - " + Achternaam + " " + format(date(today()), "YYYY-MM-DD") + ".pdf";
importFile(this, printAndSaveRecord(this, myLayout), myName);
Bijlagen := file(this, myName)

5 replies

null
    • Support
    • 5 yrs ago
    • Reported - view

    Yes, this can be done:

    –––
    Bijlagen := null;
    let myLayout := "ContractStandaard2018";
    let myNumber := cnt(files(this)) + 1;
    let myName := ContractNr + " - " + Achternaam + " " + format(date(today()), "YYYY-MM-DD") + ".pdf";
    importFile(this, printAndSaveRecord(this, myLayout), myName);
    Bijlagen := file(this, myName);
    let myHtml := "<h1>This is a test</h1>"
    sendEmail({
    from: userEmail(user()),
    to: text('Email field'),
    subject: "Ninox",
    text: text(myHtml),
    html: myHtml,
    attachments: Bijlagen
    })
    –––

    Birger

    • Arjan_Groen
    • 5 yrs ago
    • Reported - view

    Thank you Birger,

    It works well!

    Another email (input) question:

    - can I send an email (with attachement) to Ninox and create a new record, save the email context and connect the attachement to this new created record?

    Greetz Arjan G

    • Birger_H
    • 5 yrs ago
    • Reported - view

    Shound be possible - using APi calls - so its not out of the box - yet :-(

    Birger

    • navaltomar3781
    • 5 yrs ago
    • Reported - view

    There are several users get such common trouble as sending an email with attaching some particular file from a specific record from any Mac OS based platform. They take help from http://applesupportnumber.net/apple-customer-support/ that will instruct a fruitful suggestion for resolving all these issues easily.

    • navaltomar3781
    • 5 yrs ago
    • Reported - view

    [url="https://applesupportnumber.net/apple-customer-support/"]Apple Customer Support[/url]

Content aside

  • 5 yrs agoLast active
  • 5Replies
  • 4108Views