Modifier and Type | Field and Description |
---|---|
protected Vector | |
protected Vector | |
protected Vector | |
protected EmailAddress | |
protected Vector | |
protected String | |
private boolean | |
protected boolean | |
protected Message | |
protected String | |
protected int | |
private boolean | |
protected Vector | |
protected boolean | |
private boolean | |
protected String | |
protected Task | |
protected Vector | |
protected String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected final String | Returns: the current date in SMTP suitable format.Return the current Date in a format suitable for a SMTP date header. |
protected boolean | Returns: booleanWhether the port has been explicitly specified by the user. |
protected boolean | |
public abstract void | |
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 | |
public void | |
public void | setHeaders(Vector<Header>
a Vector presumed to contain Header objects. v)Set the generic headers to add to the email. |
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
if true list attached file names in the body content. b)Indicate whether filenames should be listed in the body. |
public void | |
public void | |
public void | |
public void | setPortExplicitlySpecified(boolean
boolean explicit)Whether the port has been explicitly specified by the user. |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
protected boolean |
bccList | back to summary |
---|---|
protected Vector<EmailAddress> bccList |
ccList | back to summary |
---|---|
protected Vector<EmailAddress> ccList |
files | back to summary |
---|---|
protected Vector<File> files |
from | back to summary |
---|---|
protected EmailAddress from |
headers | back to summary |
---|---|
protected Vector<Header> headers |
host | back to summary |
---|---|
protected String host |
ignoreInvalidRecipients | back to summary |
---|---|
private boolean ignoreInvalidRecipients |
includeFileNames | back to summary |
---|---|
protected boolean includeFileNames |
message | back to summary |
---|---|
protected Message message |
password | back to summary |
---|---|
protected String password |
port | back to summary |
---|---|
protected int port |
portExplicitlySpecified | back to summary |
---|---|
private boolean portExplicitlySpecified |
replyToList | back to summary |
---|---|
protected Vector<EmailAddress> replyToList |
SSL | back to summary |
---|---|
protected boolean SSL |
starttls | back to summary |
---|---|
private boolean starttls |
subject | back to summary |
---|---|
protected String subject |
task | back to summary |
---|---|
protected Task task |
toList | back to summary |
---|---|
protected Vector<EmailAddress> toList |
user | back to summary |
---|---|
protected String user |
Mailer | back to summary |
---|---|
public Mailer() |
getDate | back to summary |
---|---|
protected final String getDate() Return the current Date in a format suitable for a SMTP date header.
|
isPortExplicitlySpecified | back to summary |
---|---|
protected boolean isPortExplicitlySpecified() Whether the port has been explicitly specified by the user.
|
isStartTLSEnabled | back to summary |
---|---|
protected boolean isStartTLSEnabled() |
send | back to summary |
---|---|
public abstract void send() throws BuildException Send the email.
|
setBccList | back to summary |
---|---|
public void setBccList(Vector<EmailAddress> list) Set the bcc addresses.
|
setCcList | back to summary |
---|---|
public void setCcList(Vector<EmailAddress> list) Set the cc addresses.
|
setEnableStartTLS | back to summary |
---|---|
public void setEnableStartTLS(boolean b) Set whether to allow authentication to switch to a TLS connection via STARTTLS.
|
setFiles | back to summary |
---|---|
public void setFiles(Vector<File> files) Set the files to attach. |
setFrom | back to summary |
---|---|
public void setFrom(EmailAddress from) Set the address to send from.
|
setHeaders | back to summary |
---|---|
public void setHeaders(Vector<Header> v) Set the generic headers to add to the email. |
setHost | back to summary |
---|---|
public void setHost(String host) Set the mail server.
|
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 b) Indicate whether filenames should be listed in the body.
|
setMessage | back to summary |
---|---|
public void setMessage(Message m) Set the message.
|
setPassword | back to summary |
---|---|
public void setPassword(String password) Set the password for smtp auth.
|
setPort | back to summary |
---|---|
public void setPort(int port) Set the smtp port.
|
setPortExplicitlySpecified | back to summary |
---|---|
public void setPortExplicitlySpecified(boolean explicit) Whether the port has been explicitly specified by the user.
|
setReplyToList | back to summary |
---|---|
public void setReplyToList(Vector<EmailAddress> list) Set the replyTo addresses.
|
setSSL | back to summary |
---|---|
public void setSSL(boolean ssl) Set whether to send the mail through SSL.
|
setSubject | back to summary |
---|---|
public void setSubject(String subject) Set the subject.
|
setTask | back to summary |
---|---|
public void setTask(Task task) Set the owning task.
|
setToList | back to summary |
---|---|
public void setToList(Vector<EmailAddress> list) Set the to addresses.
|
setUser | back to summary |
---|---|
public void setUser(String user) Set the user for smtp auth.
|
shouldIgnoreInvalidRecipients | back to summary |
---|---|
protected boolean shouldIgnoreInvalidRecipients() Whether invalid recipients should be ignored.
|