Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API sends an email. The NodeMailer SMTP transport details must be specified under the mailTransport configuration property, which can be stored in your Profound.js config.js file or your workspace .noderun/settings.json file.

Parameter

  • Email data object containing the following properties:
    • from - The email address of the sender. All email addresses can be plain ‘sender@server.com’ or formatted '“Sender Name” sender@server.com’.

    • to - Comma separated list or an array of recipient email addresses that will appear on the To: field

    • cc - Comma separated list or an array of recipient email addresses that will appear on the Cc: field

    • bcc - Comma separated list or an array of recipient email addresses that will appear on the Bcc: field

    • subject - The subject of the email

    • text - The plaintext version of the message as an Unicode string, Buffer, Stream or an attachment-like object ({path: ‘/var/data/…'})

    • html - The HTML version of the message as an Unicode string, Buffer, Stream or an attachment-like object ({path: ‘http://…'})

    • attachments - An array of attachment objects. Attachments can be used for embedding images as well.

      For additional properties and other details, refer to the nodemailer npm package documentation.

...