Attribute |
Description |
Required |
from |
Email address of sender. |
Either a from attribute, or a <from> element. |
|
Comma-separated list of recipients.
Comma-separated list of recipients to carbon copy
Comma-separated list of recipients to carbon copy |
|
At least one of these, or the equivalent elements. |
|
Message to send in the body of the email. |
File to send as the body of the email. Property values in the file will be expanded. |
|
One of these or a <message> element. |
messagemimetype |
The content type of the message. The default is text/plain. |
No |
files |
Files to send as attachments to the email. Separate multiple file names using a comma or space. You can also use <fileset> elements to specify files. |
No |
failonerror |
flag to indicate whether to halt the build on any error. The default value is true. |
No. |
includefilenames |
Include filename(s) before file contents. Valid only when the plain encoding is used. The default value is false. |
No |
mailhost |
Host name of the SMTP server. The default value is localhost. |
No |
mailport |
TCP port of the SMTP server. The default value is 25. |
No |
encoding |
Specifies the encoding to use for the content of the email. Values are mime, uu, plain, or auto. The default value is auto. |
No |
subject |
Email subject line. |
No |