cx:send-mail — Sends an email message.


<p:declare-step type="cx:send-mail" xmlns:cx="">
     <p:input port="source" sequence="true"/>
     <p:output port="result"/>


The first document on the source port is expected to conform to An XML format for mail and other messages. Any additional documents are treated as attachments.

The em:content may contain either text or HTML. To send some other type as the first message body, you must leave the em:content element out of the first document and supply the body as a second document.


This step is implemented by the xmlcalabash1-sendmail module. The jar file from that project must be in the class path in order to use this step.