| Modifier and Type | Class and Description |
|---|---|
| public static class | EmailTask.Encoding
Enumerates the encoding constants. |
| Modifier and Type | Field and Description |
|---|---|
| private Path | attachments
file list |
| public static final String | AUTO
Constant to show that the best available mailer should be used. |
| private Vector | bccList
BCC (Blind Carbon Copy) recipients |
| private Vector | ccList
CC (Carbon Copy) recipients |
| private String | charset
Character set for MimeMailer |
| private String | |
| private boolean | failOnError
failure flag |
| private EmailAddress | from
sender |
| private Vector | headers
generic headers |
| private String | host
host running SMTP |
| private boolean | ignoreInvalidRecipients
ignore invalid recipients? |
| private boolean | |
| private Message | message
any text |
| private String | |
| private String | |
| public static final String | MIME
Constant to allow the Mime mailer to be requested |
| private String | password
Password for SMTP auth |
| public static final String | PLAIN
Constant to allow the plaintext mailer to be requested |
| private Integer | |
| private Vector | replyToList
replyto |
| private static final int | |
| private boolean | ssl
indicate if the user wishes SSL-TLS |
| private boolean | starttls
indicate if the user wishes support for STARTTLS |
| private String | subject
subject field |
| private Vector | toList
TO recipients |
| private String | user
User for SMTP auth |
| public static final String | UU
Constant to allow the UU mailer to be requested |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public Path | |
| public Header | |
| public void | |
| public String | |
| public boolean | Returns: Identifies whether file names should be included.Get whether file names should be included. |
| private String | |
| private void | |
| public void | setBccList(String
comma separated list of addresses. list)Shorthand to set the "bcc" address element. |
| public void | |
| public void | |
| public void | setEnableStartTLS(boolean
boolean; if true STARTTLS will be supported. b)Set whether to allow authentication to switch to a TLS connection via STARTTLS. |
| public void | setEncoding(EmailTask.
The encoding (one of AUTO, MIME, UU, PLAIN). encodingSet the preferred encoding method. |
| public void | setFailOnError(boolean
The new FailOnError value. failOnError)Set whether BuildExceptions should be passed back to the core. |
| public void | |
| public void | |
| public void | setIgnoreInvalidRecipients(boolean
boolean b)Whether invalid recipients should be ignored (but a warning will be logged) instead of making the task fail. |
| public void | setIncludefilenames(boolean
Whether to include filenames in the text of the
message. includeFileNames)Set whether to include filenames. |
| public void | |
| public void | |
| public void | |
| public void | setMessageFile(File
The file from which to take the message. file)Shorthand method to set the message from a file. |
| public void | setMessageFileInputEncoding(String
the name of the charset used encoding)Sets the encoding to expect when reading the message from a file. |
| public void | setMessageMimeType(String
The new MessageMimeType value. type)Shorthand method to set type of the text message, text/plain by default but text/html or text/xml is quite feasible. |
| public void | setPassword(String
the String password. password)Set the password for SMTP auth; this requires JavaMail. |
| public void | setReplyTo(String
The address to which replies should be directed. address)Shorthand to set the replyto address element. |
| public void | |
| public void | |
| public void | |
| public void |
| attachments | back to summary |
|---|---|
| private Path attachments file list | |
| AUTO | back to summary |
|---|---|
| public static final String AUTO Constant to show that the best available mailer should be used. | |
| bccList | back to summary |
|---|---|
| private Vector<EmailAddress> bccList BCC (Blind Carbon Copy) recipients | |
| ccList | back to summary |
|---|---|
| private Vector<EmailAddress> ccList CC (Carbon Copy) recipients | |
| charset | back to summary |
|---|---|
| private String charset Character set for MimeMailer | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| failOnError | back to summary |
|---|---|
| private boolean failOnError failure flag | |
| from | back to summary |
|---|---|
| private EmailAddress from sender | |
| headers | back to summary |
|---|---|
| private Vector<Header> headers generic headers | |
| host | back to summary |
|---|---|
| private String host host running SMTP | |
| ignoreInvalidRecipients | back to summary |
|---|---|
| private boolean ignoreInvalidRecipients ignore invalid recipients? | |
| includeFileNames | back to summary |
|---|---|
| private boolean includeFileNames | |
| message | back to summary |
|---|---|
| private Message message any text | |
| messageFileInputEncoding | back to summary |
|---|---|
| private String messageFileInputEncoding | |
| messageMimeType | back to summary |
|---|---|
| private String messageMimeType | |
| MIME | back to summary |
|---|---|
| public static final String MIME Constant to allow the Mime mailer to be requested | |
| password | back to summary |
|---|---|
| private String password Password for SMTP auth | |
| PLAIN | back to summary |
|---|---|
| public static final String PLAIN Constant to allow the plaintext mailer to be requested | |
| port | back to summary |
|---|---|
| private Integer port | |
| replyToList | back to summary |
|---|---|
| private Vector<EmailAddress> replyToList replyto | |
| SMTP_PORT | back to summary |
|---|---|
| private static final int SMTP_PORT | |
| ssl | back to summary |
|---|---|
| private boolean ssl indicate if the user wishes SSL-TLS | |
| starttls | back to summary |
|---|---|
| private boolean starttls indicate if the user wishes support for STARTTLS | |
| subject | back to summary |
|---|---|
| private String subject subject field | |
| toList | back to summary |
|---|---|
| private Vector<EmailAddress> toList TO recipients | |
| user | back to summary |
|---|---|
| private String user User for SMTP auth | |
| UU | back to summary |
|---|---|
| public static final String UU Constant to allow the UU mailer to be requested | |
| EmailTask | back to summary |
|---|---|
| public EmailTask() | |
| addBcc | back to summary |
|---|---|
| public void addBcc(EmailAddress address) Add a "bcc" address element.
| |
| addCc | back to summary |
|---|---|
| public void addCc(EmailAddress address) Add a "cc" address element.
| |
| addFileset | back to summary |
|---|---|
| public void addFileset(FileSet fs) Add a set of files (nested fileset attribute).
| |
| addFrom | back to summary |
|---|---|
| public void addFrom(EmailAddress address) Add a from address element.
| |
| addMessage | back to summary |
|---|---|
| public void addMessage(Message message) throws BuildException Add a message element.
| |
| addReplyTo | back to summary |
|---|---|
| public void addReplyTo(EmailAddress address) Add a replyto address element.
| |
| addTo | back to summary |
|---|---|
| public void addTo(EmailAddress address) Add a to address element.
| |
| createAttachments | back to summary |
|---|---|
| public Path createAttachments() Creates a Path as container for attachments. Supports any filesystem resource-collections that way.
| |
| createHeader | back to summary |
|---|---|
| public Header createHeader() Create a nested header element.
| |
| execute | back to summary |
|---|---|
| public void execute() Overrides org. Send an email.
| |
| getCharset | back to summary |
|---|---|
| public String getCharset() Returns the character set of mail message.
| |
| getIncludeFileNames | back to summary |
|---|---|
| public boolean getIncludeFileNames() Get whether file names should be included.
| |
| getMailerImplementation | back to summary |
|---|---|
| private String getMailerImplementation() | |
| logBuildException | back to summary |
|---|---|
| private void logBuildException(String reason, BuildException e) | |
| setBccList | back to summary |
|---|---|
| public void setBccList(String list) Shorthand to set the "bcc" address element.
| |
| setCcList | back to summary |
|---|---|
| public void setCcList(String list) Shorthand to set the "cc" address element.
| |
| setCharset | back to summary |
|---|---|
| public void setCharset(String charset) Sets the character set of mail message.
Will be ignored if mimeType contains ....; Charset=... substring or
encoding is not
| |
| setEnableStartTLS | back to summary |
|---|---|
| public void setEnableStartTLS(boolean b) Set whether to allow authentication to switch to a TLS connection via STARTTLS.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(EmailTask. Set the preferred encoding method. | |
| setFailOnError | back to summary |
|---|---|
| public void setFailOnError(boolean failOnError) Set whether BuildExceptions should be passed back to the core.
| |
| setFiles | back to summary |
|---|---|
| public void setFiles(String filenames) Set the list of files to be attached.
| |
| setFrom | back to summary |
|---|---|
| public void setFrom(String address) Shorthand to set the from address element.
| |
| setIgnoreInvalidRecipients | back to summary |
|---|---|
| public void setIgnoreInvalidRecipients(boolean b) Whether invalid recipients should be ignored (but a warning will be logged) instead of making the task fail. Even with this property set to true the task will still fail if the mail couldn't be sent to any recipient at all.
| |
| setIncludefilenames | back to summary |
|---|---|
| public void setIncludefilenames(boolean includeFileNames) Set whether to include filenames.
| |
| setMailhost | back to summary |
|---|---|
| public void setMailhost(String host) Set the host.
| |
| setMailport | back to summary |
|---|---|
| public void setMailport(int port) Set the mail server port.
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(String message) Shorthand method to set the message.
| |
| setMessageFile | back to summary |
|---|---|
| public void setMessageFile(File file) Shorthand method to set the message from a file.
| |
| setMessageFileInputEncoding | back to summary |
|---|---|
| public void setMessageFileInputEncoding(String encoding) Sets the encoding to expect when reading the message from a file. Will be ignored if the message has been specified inline.
| |
| setMessageMimeType | back to summary |
|---|---|
| public void setMessageMimeType(String type) Shorthand method to set type of the text message, text/plain by default but text/html or text/xml is quite feasible.
| |
| setPassword | back to summary |
|---|---|
| public void setPassword(String password) Set the password for SMTP auth; this requires JavaMail.
| |
| setReplyTo | back to summary |
|---|---|
| public void setReplyTo(String address) Shorthand to set the replyto address element.
| |
| setSSL | back to summary |
|---|---|
| public void setSSL(boolean ssl) Set whether to send data over SSL.
| |
| setSubject | back to summary |
|---|---|
| public void setSubject(String subject) Set the subject line of the email.
| |
| setToList | back to summary |
|---|---|
| public void setToList(String list) Shorthand to set the "to" address element.
| |
| setUser | back to summary |
|---|---|
| public void setUser(String user) Set the user for SMTP auth; this requires JavaMail.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: a list of valid entriesImplements abstract org. |
| Encoding | back to summary |
|---|---|
| public Encoding() | |
| getValues | back to summary |
|---|---|
| public String[] getValues() Implements abstract org. finds the valid encoding values | |