| files | An list of attachment files. |
| from | The from address. |
| host | The host name of the server. |
| message | The message body as text. |
| name | The name of the job. |
| subject | The subject. |
| to | The to addresses. |
| Example 1 | Send a simple message. |
| Example 2 | Send attachements. |
| Configured By | ELEMENT |
| Access | READ_WRITE |
| Required | No. |
An list of attachment files.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | Yes. |
The from address.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | Yes. |
The host name of the server.
| Configured By | TEXT |
| Access | READ_WRITE |
| Required | No. |
The message body as text.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | No. |
The name of the job. Any text.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | No. Defaults to (no subject). |
The subject.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | Yes. |
The to addresses. A semicolon delimited list.
Send a simple message.
<oddjob xmlns:mail="http://rgordon.co.uk/oddjob/mail">
<job>
<mail:send name="Send alert mail" from="${my.alert.from}" to="${my.alert.to}" host="${my.mailhost}" subject="FTP download failed">
Important jobs Failed!
</mail:send>
</job>
</oddjob>
Send attachements. This example rather unimagineatively sends the build file as two seperate attachements.
<oddjob xmlns:mail="http://rgordon.co.uk/oddjob/mail">
<job>
<mail:send name="Send Attachments" from="${my.alert.from}" to="${my.alert.to}" host="${my.mailhost}" subject="Some Attachements">
<files>
<list>
<values>
<file file="build.xml"/>
<file file="build.xml"/>
</values>
</list>
</files>
</mail:send>
</job>
</oddjob>