Package sk.iway.iwcm.helpers
Class MailHelper
java.lang.Object
sk.iway.iwcm.helpers.MailHelper
MailHelper
Facade over
SendMail
class-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachment
(File file) addAttachment
(IwcmFile file) addBccEmail
(String email) addCcRecipient
(String email) addNamedAttachment
(File file, String displayName) addNamedAttachment
(IwcmFile file, String displayName) addRecipient
(String email) boolean
boolean
removeAttachment
(File file) removeAttachment
(IwcmFile file) boolean
send()
setAttachments
(String attachments) setBaseHref
(String baseHref) setBaseHref
(javax.servlet.http.HttpServletRequest request) setBccEmail
(String bccEmail) setCcEmail
(String ccEmail) setFromEmail
(String fromEmail) setFromName
(String fromName) setHeaders
(List<Pair<String, String>> headers) setMessage
(String message) setReplyTo
(String replyTo) setSendLaterWhenException
(boolean sendLaterWhenException) setSubject
(String subject) setToEmail
(String toEmail) setWriteToAuditLog
(boolean writeToAuditLog)
-
Constructor Details
-
MailHelper
public MailHelper()
-
-
Method Details
-
send
public boolean send() -
sendCapturingException
-
addRecipient
-
addCcRecipient
-
addBccEmail
-
addAttachment
-
addAttachment
-
addNamedAttachment
-
addNamedAttachment
-
removeAttachment
-
removeAttachment
-
setBaseHref
-
setBaseHref
-
addHeader
-
addHeader
-
getFromName
-
getFromEmail
-
getToEmail
-
getCcEmail
-
getBccEmail
-
getSubject
-
getMessage
-
getAttachments
-
getReplyTo
-
getBaseHref
-
isSendLaterWhenException
public boolean isSendLaterWhenException() -
isWriteToAuditLog
public boolean isWriteToAuditLog() -
getHeaders
-
setFromName
- Returns:
this
.
-
setFromEmail
- Returns:
this
.
-
setToEmail
- Returns:
this
.
-
setCcEmail
- Returns:
this
.
-
setBccEmail
- Returns:
this
.
-
setSubject
- Returns:
this
.
-
setMessage
- Returns:
this
.
-
setAttachments
- Returns:
this
.
-
setReplyTo
- Returns:
this
.
-
setSendLaterWhenException
- Returns:
this
.
-
setWriteToAuditLog
- Returns:
this
.
-
setHeaders
- Returns:
this
.
-