EmailService Class
Service for sending emails.
Item Index
Properties
- DEFAULT_SETTINGS static
Methods
getDefaultSettings
()
Object
Retrieves the default email settings from installation
Returns:
Object:
Email settings
getSettings
(
-
cb
Retrieves the email settings
Parameters:
-
cbFunctionCallback function
send
(
-
from -
to -
subject -
body -
cb
Sends an email
Parameters:
-
fromStringFrom name
-
toStringTo email address
-
subjectStringEmail subject
-
bodyStringEmail content
-
cbFunctionCallback function
sendFromLayout
(
-
options -
cb
Uses an HTML layout and sends it as an email
Parameters:
-
optionsObjectObject containing the email settings and layout
-
cbFunctionCallback function
sendFromTemplate
(
-
options -
cb
Retrieves a template and sends it as an email
Parameters:
-
optionsObjectObject containing the email settings and template name
-
cbFunctionCallback function
