A task to send SMTP email. Text and text files to include in the message body may be specified. To send binary attachments the optional MimeMail task should be used instead
Attribute | Description | Required |
from | Email address of sender. | Yes |
tolist | Comma-separated list of recipients. | Yes |
message | Message to send in the body of the email. | Yes |
files | Filename(s) of text to send in the body of the email. Multiple files are comma-separated. | |
includefilenames | Include filename(s) before file contents. Valid only when the files attribute is specified. | No, default is false |
mailhost | Host name of the mail server. | No, default is "localhost" |
mailport | Port of the mail server. | No, default to SMTP default (25) |
subject | Email subject line. | No |
<mail from="me" tolist="you" subject="Results of nightly build" files="build.log"/>
Sends an eMail from me to you with a subject of Results of nightly build and includes the contents of build.log in the body of the message.
Copyright © 2000,2001 Apache Software Foundation. All rights Reserved.