|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.SendEmail
A task to send SMTP email.
| Attribute | Description | Required |
|---|---|---|
| from | Email address of sender. | Yes |
| mailhost | Host name of the mail server. | No, default to "localhost" |
| toList | Comma-separated list of recipients. | Yes |
| subject | Email subject line. | No |
| files | Filename(s) of text to send in the body of the email. Multiple files are comma-separated. | One of these two attributes |
| message | Message to send inthe body of the email. |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType, wrapper |
| Constructor Summary | |
SendEmail()
Creates new SendEmail |
|
| Method Summary | |
void |
execute()
Executes this build task. |
void |
setFiles(java.lang.String filenames)
Sets the file parameter of this build task. |
void |
setFrom(java.lang.String from)
Sets the from parameter of this build task. |
void |
setMailhost(java.lang.String mailhost)
Sets the mailhost parameter of this build task. |
void |
setMessage(java.lang.String message)
Sets the message parameter of this build task. |
void |
setSubject(java.lang.String subject)
Sets the subject parameter of this build task. |
void |
setToList(java.lang.String toList)
Sets the toList parameter of this build task. |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SendEmail()
| Method Detail |
public void setToList(java.lang.String toList)
toList - Comma-separated list of email recipient addreses.public void setFrom(java.lang.String from)
from - Email address of sender.public void setMailhost(java.lang.String mailhost)
mailhost - Mail host name.public void setMessage(java.lang.String message)
message - Message body of this email.public void setSubject(java.lang.String subject)
subject - Subject of this email.public void setFiles(java.lang.String filenames)
filenames - Filenames to include as the message body of this email.public void execute()
execute in class Taskorg.apache.tools.ant.TaskBuildException - if someting goes wrong with the build
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||