OpenWGA 7.10 - TMLScript reference

Mail
Method :

send([message])

On object Mail
Usage Sends the created E-Mail
Description Variant 1 without message parameter:
Sends the E-Mail based on the settings done on the Mail object.

Variant 2 with message parameter:
Sends the E-Mail represented by the given MimeMessage object, but with the server settings that the Mail object uses. The message object may be previously created via mail.prepareMessage() and then modified in a custom way.

This method throws an error if the sending process fails.
Parameters message (Java object of Type javax.mail.internet.MimeMessage, optional):
Message object of the Java Mail API to send
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent