sendEmail

To send an email out of Ninox

With this function, you can send emails right out of Ninox. You can enter email details directly to the function or pull them from the respective fields.

As the sending is done via the Ninox servers, the sender has to be a member of the workspace.

There is no immediate feedback that the email has been sent successfully, nor is it stored in the database. So we recommend using "cc" or "bcc" to send a copy to your email address.

This function is best used in a button.

Syntax

sendEmail(JSON)

Return

any

Examples

cc, bcc, and attachments are optional.

sendEmail({
    from: "support@ninox.com",
    to: "recipient@domain.com",
    cc: "recipient2@domain.com",
    bcc: "support@ninox.com",
    subject: "Thank you for your email",
    text: "We received your request to get another copy of your invoice",
    html: "Some text with markup",
    attachments: Invoice_220801
})

Result: An email with an attached invoice will be sent from Ninox Support.

You can use the replyTo parameter to set a specific email address for recipients to respond to when they use the reply option in their email program. Ensure that the email address provided in replyTo is valid.

sendEmail({
    from: "support@ninox.com",
    to: "recipient@domain.com",
    replyTo: "reply@ninox.com",
    cc: "recipient2@domain.com",
    bcc: "support@ninox.com",
    subject: "Thank you for your email",
    text: "We received your request to get another copy of your invoice",
    html: "Some text with markup",
    attachments: Invoice_220801
})

Result: An email with an attached invoice will be sent from Ninox Support. If the reply option is used, the reply email will be sent to reply@ninox.com.

See also

http, which sends an HTTP request.

Do you want to dive deeper into the topic? Take a look at the corresponding part of our video tutorial.

Last updated