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 totrue.-
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
messageormessagefileattributes. Defaults totext/plain.-
subject(1.4, String, N) The email subject line.
-
tolist(1.4, String, *) A comma-delimited list of
TOrecipients.
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) filesetelements specifying files to attach.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access