Skip to content

notification.email

This function can be used to send a notification through email.

js
notification.email(to, from, subject, html, [cc])
notification.email(to, from, subject, html, [cc])

Parameters

  • to - Recipient of the email.
  • from - Sender of the email.
  • subject - Subject of the email.
  • html - Content of the email.
  • cc - (Optional) An array of emails to include in the cc of the email. ^v2.5.839

Example

js
notification.email(
    "support@modlr.co",
    "admin@modlr.co",
    "Hello",
    "Hello Support",
    [
        "cc1@modlr.co",
        "cc2@modlr.co"
    ]
);
notification.email(
    "support@modlr.co",
    "admin@modlr.co",
    "Hello",
    "Hello Support",
    [
        "cc1@modlr.co",
        "cc2@modlr.co"
    ]
);