<mail>
The <mail> task enables you to send SMTP email. This task is useful for notifying someone immediately if a job breaks in an overnight build. With the capability to include files in the message body and/or as attachments, logs, for example, can be sent in the mail.
Table 4.56 details the task attributes.
Attributes | Description |
---|---|
Required | |
from (required unless a nested <from> is used) | The e-mail address of the sender. |
message (required if messagefile and <message> are not specified) | The message to send in the body of the e-mail. This is ignored if files is specified. |
messagefile (required if message and <message> are not specified) | The file that contains the content for the email message body. |
Optional ... |
Get Ant Developer’s Handbook 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.