Notification
Api to send emails or SMS using a notification template. Notification templates can be defined in Administration tab, "Workflows and Notifications" menu and "Notifications Templates" menu
Functions
init(template)
Init the notification with the template. template in an Entity object.
setFrom(email, title)
Set the sender informations.
- email is a string representing the email address of the sender.
- title is a string representing his name.
setReplyTo(email, title)
Set the "reply to" informations.
- email is a string representing the email address of the sender.
- title is a string representing his name.
setTo(recipient, group)
Set the recipient informations
- recipient is either :
- a string representing an email address
- an Entity object representing a User or a Group
- an Array of Entity objects of Users or Groups
- group is an Entity object representing a group used for delegation
example:
var result = amount1.Multiply(taxrate);