notification.email deprecated
Deprecated
Use EmailBuilder instead.
Sends an email.
js
notification.email(to, from, subject, html, cc)Parameters
| Parameter | Type | Description |
|---|---|---|
to | string | The recipient's email address. |
from | string | The sender's email address. |
subject | string | The subject of the email. |
html | string | The content of the email. |
cc | string[] | Optional. The email addresses to cc. ^v2.5.839 |
Returns
booleantrue 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"
]
);