public class Mailer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
Mailer()
Creates new Mailer
|
| Modifier and Type | Method and Description |
|---|---|
protected List |
convertDelim2ArrayList(String delim) |
Document |
createFormDOM() |
protected String |
createHTML() |
protected String |
createTxt() |
String |
getAttachment()
Getter for property attachment.
|
DataSource |
getAttachmentDataSource() |
String |
getAttachmentName()
Getter for property attachmentName.
|
String |
getBody()
Getter for property body.
|
Hashtable |
getExtraParams() |
String |
getFooter()
Getter for property footer.
|
Locale |
getLocale() |
String |
getMailBcc()
Getter for property mailBcc.
|
String |
getMailCc()
Getter for property mailCc.
|
String |
getMailer()
Getter for property mailer.
|
String |
getMailFrom()
Getter for property mailFrom.
|
String |
getMailHost()
Getter for property mailHost.
|
String |
getMailTo()
Getter for property mailTo.
|
org.apache.struts.util.MessageResources |
getMessages() |
javax.servlet.http.HttpSession |
getSession() |
String |
getSubject()
Getter for property subject.
|
String |
getXsl() |
boolean |
isReturnReceipt() |
void |
send() |
org.apache.struts.action.ActionMessages |
send(org.apache.struts.action.ActionMessages errors) |
void |
setAttachment(String attachment)
Setter for property attachment.
|
void |
setAttachmentDataSource(DataSource attachmentDataSource) |
void |
setAttachmentName(String attachmentName)
Setter for property attachmentName.
|
void |
setBody(String body)
Setter for property body.
|
void |
setExtraParams(Hashtable extraParams) |
void |
setFooter(String footer)
Setter for property footer.
|
void |
setLocale(Locale locale) |
void |
setMailBcc(String mailBcc)
Setter for property mailBcc.
|
void |
setMailCc(String mailCc)
Setter for property mailCc.
|
void |
setMailer(String mailer)
Setter for property mailer.
|
void |
setMailFrom(String mailFrom)
Setter for property mailFrom.
|
void |
setMailHost(String mailHost)
Setter for property mailHost.
|
void |
setMailTo(String mailTo)
Setter for property mailTo.
|
void |
setMessages(org.apache.struts.util.MessageResources messages) |
void |
setReturnReceipt(boolean returnReceipt) |
void |
setSession(javax.servlet.http.HttpSession session) |
void |
setSubject(String subject)
Setter for property subject.
|
void |
setXsl(String xsl) |
public String getMailTo()
public void setMailTo(String mailTo)
mailTo - New value of property mailTo.public String getMailFrom()
public void setMailFrom(String mailFrom)
mailFrom - New value of property mailFrom.public String getSubject()
public void setSubject(String subject)
subject - New value of property subject.public String getMailCc()
public void setMailCc(String mailCc)
mailCc - New value of property mailCc.public String getMailBcc()
public void setMailBcc(String mailBcc)
mailBcc - New value of property mailBcc.public String getMailHost()
public void setMailHost(String mailHost)
mailHost - New value of property mailHost.public String getBody()
public void setBody(String body)
body - New value of property body.public String getAttachment()
public void setAttachment(String attachment)
attachment - New value of property attachment.public String getAttachmentName()
public void setAttachmentName(String attachmentName)
attachmentName - New value of property attachmentName.public String getMailer()
public void setMailer(String mailer)
mailer - New value of property mailer.public String getFooter()
public void setFooter(String footer)
mailer - New value of property footer.public void send()
throws javax.mail.internet.AddressException,
javax.mail.MessagingException,
IOException,
Exception
javax.mail.internet.AddressExceptionjavax.mail.MessagingExceptionIOExceptionExceptionpublic org.apache.struts.action.ActionMessages send(org.apache.struts.action.ActionMessages errors)
throws javax.mail.internet.AddressException,
javax.mail.MessagingException,
IOException,
Exception
javax.mail.internet.AddressExceptionjavax.mail.MessagingExceptionIOExceptionExceptionpublic Document createFormDOM() throws DOMException, ParserConfigurationException
protected String createHTML() throws FileNotFoundException, Exception, TransformerConfigurationException, TransformerException, ParserConfigurationException
protected String createTxt()
public Hashtable getExtraParams()
public void setExtraParams(Hashtable extraParams)
public org.apache.struts.util.MessageResources getMessages()
public void setMessages(org.apache.struts.util.MessageResources messages)
public Locale getLocale()
public void setLocale(Locale locale)
public javax.servlet.http.HttpSession getSession()
public void setSession(javax.servlet.http.HttpSession session)
public String getXsl()
public void setXsl(String xsl)
public boolean isReturnReceipt()
public void setReturnReceipt(boolean returnReceipt)
public DataSource getAttachmentDataSource()
public void setAttachmentDataSource(DataSource attachmentDataSource)
Copyright © 2016. All rights reserved.