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:
-
cb
FunctionCallback function
send
(
-
from
-
to
-
subject
-
body
-
cb
Sends an email
Parameters:
-
from
StringFrom name
-
to
StringTo email address
-
subject
StringEmail subject
-
body
StringEmail content
-
cb
FunctionCallback function
sendFromLayout
(
-
options
-
cb
Uses an HTML layout and sends it as an email
Parameters:
-
options
ObjectObject containing the email settings and layout
-
cb
FunctionCallback function
sendFromTemplate
(
-
options
-
cb
Retrieves a template and sends it as an email
Parameters:
-
options
ObjectObject containing the email settings and template name
-
cb
FunctionCallback function