|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.commons.util.impl.MailerImpl
public final class MailerImpl
This class is responsible for generating email body and sending email.
Constructor Summary | |
---|---|
MailerImpl()
|
Method Summary | |
---|---|
void |
sendEmail()
Send a text email. |
void |
sendHtmlEmail()
Send an html email. |
Mailer |
setAddressBCC(java.lang.String addressBCC)
Setter for property addressBCC. |
Mailer |
setAddressCC(java.lang.String addressCC)
Setter for property addressCC. |
Mailer |
setAddressFrom(java.lang.String addressFrom)
Setter for property addressFrom. |
Mailer |
setAddressTo(java.lang.String addressTo)
Setter for property addressTo. |
Mailer |
setBody(java.lang.String body)
Setter for property body. |
Mailer |
setBodyHtml(java.lang.String bodyHtml)
Setter for property html body. |
void |
setElasticPath(ElasticPath elasticPath)
Sets the context instance ElasticPath . |
Mailer |
setFromName(java.lang.String fromName)
Setter for property from name. |
Mailer |
setMailHost(java.lang.String mailHost)
Setter for property mail host. |
Mailer |
setMailPort(java.lang.String mailPort)
Setter for property mail port. |
Mailer |
setReturnPath(java.lang.String returnPath)
Setter for property return path. |
Mailer |
setSubject(java.lang.String subject)
Setter for property subject. |
Mailer |
setToName(java.lang.String toName)
Setter for property to name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailerImpl()
Method Detail |
---|
public void sendEmail() throws EpSystemException
sendEmail
in interface Mailer
EpSystemException
- on failurepublic void sendHtmlEmail() throws EpSystemException
sendHtmlEmail
in interface Mailer
EpSystemException
- on failurepublic Mailer setAddressBCC(java.lang.String addressBCC)
setAddressBCC
in interface Mailer
addressBCC
- New value of property addressBCC
public Mailer setAddressCC(java.lang.String addressCC)
setAddressCC
in interface Mailer
addressCC
- New value of property addressCC.
public Mailer setAddressFrom(java.lang.String addressFrom)
setAddressFrom
in interface Mailer
addressFrom
- New value of property addressFrom.
public Mailer setAddressTo(java.lang.String addressTo)
setAddressTo
in interface Mailer
addressTo
- New value of property addressTo
public Mailer setBody(java.lang.String body)
setBody
in interface Mailer
body
- New value of property body.
public Mailer setBodyHtml(java.lang.String bodyHtml)
setBodyHtml
in interface Mailer
bodyHtml
- New value of property html body.
public void setElasticPath(ElasticPath elasticPath)
ElasticPath
.
elasticPath
- the context instance ElasticPath
.public Mailer setFromName(java.lang.String fromName)
setFromName
in interface Mailer
fromName
- body New value of property from name.
public Mailer setMailHost(java.lang.String mailHost)
setMailHost
in interface Mailer
mailHost
- body New value of property mail host.
public Mailer setMailPort(java.lang.String mailPort)
setMailPort
in interface Mailer
mailPort
- New value of property mail port.
public Mailer setReturnPath(java.lang.String returnPath)
setReturnPath
in interface Mailer
returnPath
- body New value of property return path.
public Mailer setSubject(java.lang.String subject)
setSubject
in interface Mailer
subject
- New value of property subject.
public Mailer setToName(java.lang.String toName)
setToName
in interface Mailer
toName
- body New value of property to name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |