OpenWGA 7.6 - TMLScript reference

Mail
Method :

setTo(address)

On object Mail
Usage Sets a single or multiple recipient E-Mail address(es) that this mail will be sent to
Description This sets the list available under mail.to to contain the given mail address(es).
Parameters address (String | List of Strings | Array of Strings):
E-Mail address(es)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent
Examples

Send mail to multiple addresses:

mail.setTo(["p1@company.com", "p2@company.com"])