Skip to content

notification.email deprecated ​

Deprecated

Use EmailBuilder instead.

Sends an email.

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

Parameters ​

ParameterTypeDescription
tostringThe recipient's email address.
fromstringThe sender's email address.
subjectstringThe subject of the email.
htmlstringThe content of the email.
ccstring[]Optional. The email addresses to cc. ^v2.5.839

Returns ​

boolean

true if the email was sent, otherwise false.

Examples ​

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