OpenWGA 7.10 - TMLScript reference

Mail
Method :

setFrom(address[, name])

On object Mail
Usage Set the sender address of the mail to send
Description Set the sender address of the mail to send.
Parameters address (String)

The senders E-Mail address.

name (String optional)

The personal name of the sender mail address.

Default value The sender address of the OpenWGA mail configuration (if the mail object was created using this)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent
Examples

mail.setFrom("info@innovationgate.com", "Innovation Gate");

Sets the address to "Innovation Gate<info@innovationgate.com>"