Name

mimemail

Synopsis

Sends SMTP mail with MIME attachments. This task requires the JavaMail API and the JavaBeans Activation Framework. This differs from the core mail task in that it supports attachments.

Attributes

bcclist (1.4, String, *)

A comma-delimited list of BCC recipients.

cclist (1.4, String, *)

A comma-delimited list of CC recipients.

failonerror (1.4, boolean, N)

If true, abort the build on failure. Defaults to true.

from (1.4, String, Y)

The sender’s email address.

mailhost (1.4, String, N)

The mail server name. Defaults to localhost.

message (1.4, String, *)

The message body.

messagefile (1.4, File, *)

A file containing the message body.

messagemimetype (1.4, String, N)

MIME type of attached message when using message or messagefile attributes. Defaults to text/plain.

subject (1.4, String, N)

The email subject line.

tolist (1.4, String, *)

A comma-delimited list of TO recipients.

Specify exactly one of message or messageFile, or specify a nested <fileset>. At least one of tolist, cclist, or bcclist must be specified.

Content

0..n nested <fileset> elements (1.4)

fileset elements specifying files to attach.

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.