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);

Tags:
Created by Pierre Dubois on 2012/05/31 15:17
     
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation