Class EmailMessage.Builder
java.lang.Object
com.inductiveautomation.ignition.gateway.mail.EmailMessage.Builder
- Enclosing class:
- EmailMessage
Builder which provides a fluent-API style of creating new
EmailMessage instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()setAttachData(List<String> attachData) setAttachNames(List<String> attachNames) setBccRecipients(List<String> bccRecipients) setCcRecipients(List<String> ccRecipients) setContentType(String contentType) setPriority(String priority) setReplyTo(List<String> replyTo) setRetries(Integer retries) setSubject(String subject) setTimeout(Integer timeout) setToRecipients(List<String> toRecipients)
-
Method Details
-
setFrom
-
setSubject
-
setBody
-
setContentType
-
setReplyTo
-
setToRecipients
-
setCcRecipients
-
setBccRecipients
-
setAttachNames
-
setAttachData
-
setTimeout
-
setRetries
-
setPriority
-
build
- Returns:
- a new
EmailMessageinstance injected with the properties set on thisEmailMessage.Builderinstance. it is highly recommended to provide values for properties "to", "contentType", and "toRecipients" before building the new email message instance. while it is allowed to build new email messages without these properties, most email profile types will reject any request to send email messages without these properties.
-