<?xml version="1.0" encoding="UTF-8"?> <action-sequence> <name>send-email.xaction</name> <title>%title</title> <version>1</version> <logging-level>error</logging-level> <documentation> <author>Doug Moran</author> <description>%description</description> <help/> <result-type>none</result-type> <icon/> </documentation> <inputs> <to type="string"> <default-value>joe.pentaho@pentaho.org</default-value> <sources> <runtime>EMAIL</runtime> </sources> </to> <to-name type="string"> <default-value>Joe Pentaho</default-value> <sources> <runtime>MANAGER_NAME</runtime> </sources> </to-name> <attach-name type="string"> <default-value>%default-attachment</default-value> <sources> <runtime>report-name</runtime> </sources> </attach-name> <subject type="string"> <default-value>%default-subject</default-value> <sources> <runtime>report-description</runtime> </sources> </subject> <from type="string"> <default-value>joe.pentaho@pentaho.org</default-value> </from> <report-output type="content"> <sources> <runtime>report-output</runtime> </sources> </report-output> </inputs> <outputs/> <resources/> <actions> <action-definition> <component-name>UtilityComponent</component-name> <action-type>Format The Email Msg</action-type> <action-inputs> <to-name type="string"/> <subject type="string"/> </action-inputs> <action-outputs> <formatted-msg type="string" mapping="messageHtml"/> </action-outputs> <component-definition> <format> <format-string>%message-msg</format-string> <arg>to-name</arg> <arg>subject</arg> <return>formatted-msg</return> </format> </component-definition> </action-definition> <action-definition> <component-name>TemplateComponent</component-name> <action-type>Format The Debug Msg</action-type> <action-inputs> <to-name type="string"/> <to type="string"/> <subject type="string"/> </action-inputs> <action-outputs> <output-message type="string" mapping="debugMsg"/> </action-outputs> <component-definition> <template><![CDATA[%debug-msg - {to-name} - {to} - {subject}]]></template> </component-definition> </action-definition> <action-definition> <component-name>UtilityComponent</component-name> <action-type>Print Parameters</action-type> <action-inputs> <debugMsg type="string"/> </action-inputs> <component-definition> <print> <arg>debugMsg</arg> </print> </component-definition> </action-definition> <action-definition> <component-name>EmailComponent</component-name> <action-type>Send Email</action-type> <action-inputs> <to type="string"/> <from type="string"/> <subject type="string"/> <message-html type="string" mapping="messageHtml"/> <report-output type="content"/> <attach-name type="string"/> </action-inputs> <component-definition> <attachment-ref name-param="attach-name" input-param="report-output"/> </component-definition> </action-definition> </actions> </action-sequence>