org.apache.tools.ant.taskdefs.email
Class Mailer
java.lang.Object
org.apache.tools.ant.taskdefs.email.Mailer
public abstract class Mailer
extends java.lang.Object
Base class for the various emailing implementations.
- Ant 1.5
protected String | getDate() - Returns the current Date in a format suitable for a SMTP date
header.
|
void | send() - This method should send the email
|
void | setBccList(Vector list) - Sets the bcc addresses
|
void | setCcList(Vector list) - Sets the cc addresses
|
void | setFiles(Vector files) - Sets the files to attach
|
void | setFrom(EmailAddress from) - Sets the address to send from
|
void | setHost(String host) - Sets the mail server
|
void | setIncludeFileNames(boolean b) - Indicates whether filenames should be listed in the body
|
void | setMessage(Message m) - Sets the message
|
void | setPassword(String password) - Sets the password for smtp auth
|
void | setPort(int port) - Sets the smtp port
|
void | setReplyToList(Vector list) - Sets the replyto addresses
|
void | setSSL(boolean SSL) - Sets whether the user wants to send the mail through SSL
|
void | setSubject(String subject) - Sets the subject
|
void | setTask(Task task) - Sets the owning task
|
void | setToList(Vector list) - Set the to addresses
|
void | setUser(String user) - Sets the user for smtp auth
|
bccList
protected Vector bccList
ccList
protected Vector ccList
files
protected Vector files
host
protected String host
includeFileNames
protected boolean includeFileNames
password
protected String password
replyToList
protected Vector replyToList
subject
protected String subject
toList
protected Vector toList
user
protected String user
getDate
protected final String getDate()
Returns the current Date in a format suitable for a SMTP date
header.
- the current date in SMTP suitable format.
- Ant 1.5
setBccList
public void setBccList(Vector list)
Sets the bcc addresses
list
- a vector of the bcc addresses
setCcList
public void setCcList(Vector list)
Sets the cc addresses
list
- a vector of cc addresses
setFiles
public void setFiles(Vector files)
Sets the files to attach
files
- list of files to attach to the email.
setFrom
public void setFrom(EmailAddress from)
Sets the address to send from
from
- the sender
setHost
public void setHost(String host)
Sets the mail server
host
- the mail server name
setIncludeFileNames
public void setIncludeFileNames(boolean b)
Indicates whether filenames should be listed in the body
b
- if true list attached file names in the body content.
setMessage
public void setMessage(Message m)
Sets the message
m
- the message content
setPassword
public void setPassword(String password)
Sets the password for smtp auth
password
- the authentication password
- ant 1.6
setPort
public void setPort(int port)
Sets the smtp port
port
- the SMTP port
setReplyToList
public void setReplyToList(Vector list)
Sets the replyto addresses
list
- a vector of reployTo addresses
- ant 1.6
setSSL
public void setSSL(boolean SSL)
Sets whether the user wants to send the mail through SSL
SSL
- if true use SSL transport
- ant 1.6
setSubject
public void setSubject(String subject)
Sets the subject
subject
- the subject line
setTask
public void setTask(Task task)
Sets the owning task
task
- the owning task instance
setToList
public void setToList(Vector list)
Set the to addresses
list
- a vector of recipient addresses
setUser
public void setUser(String user)
Sets the user for smtp auth
user
- the username
- ant 1.6
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.