May 2002
Intermediate to advanced
288 pages
10h 50m
English
Sends SMTP email.
files (all, String, *)A comma-separated list of filenames. Each specifies a text file to include in the mail body.
from (all, String, Y)The sender’s email address.
mailhost (all, String, N)The mail server hostname.
message (all, String, *)The message content.
subject (all, String, N)The mail subject.
tolist (all, String, Y)A comma-separated list of recipient email addresses.
Either files or message is
required.
None.
Send email with build results:
<property name="my.mailhost" value="mail.oreilly.com"/>
<mail from="ant@foobar.com"
tolist="developers@foobar.com"
subject="Build Results"
mailhost="${my.mailhost}"
files="buildlog.txt"/>Read now
Unlock full access