Mail

Description

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

Parameters

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. One of the two
files Filename(s) of text to send in the body of the email. Multiple files are comma-separated.
failonerror flag to indicate whether to halt the build on any error. No, default is true
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

Examples

  <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 © 2001-2002 Apache Software Foundation. All rights Reserved.