Package io.jmix.email
Class EmailInfoBuilder
java.lang.Object
io.jmix.email.EmailInfoBuilder
EmailInfo builder.
 
 Use setters to provide parameters and then invoke the build method to obtain the EmailInfo instance.
 
Sample usage:
 EmailInfo emailInfo = EmailInfoBuilder.create()
               .setAddresses(addresses)
               .setSubject("Email subject")
               .setBody("Some email body")
               .build();- 
Method SummaryModifier and TypeMethodDescriptionaddAttachment(EmailAttachment attachment) addHeader(EmailHeader header) build()static EmailInfoBuildercreate()EmailInfo emailInfo = EmailInfo.create() .setAddresses("john.doe@company.com,jane.roe@company.com") .setSubject("Company news") .setBody("Some content") .build();static EmailInfoBuilderEmailInfo emailInfo = EmailInfo.create("john.doe@company.com,jane.roe@company.com", "Company news", "Some content").build();getBcc()getBody()getCc()getFrom()setAddresses(String addresses) setAttachments(EmailAttachment... attachments) setAttachments(List<EmailAttachment> attachments) setBodyContentType(String bodyContentType) setHeaders(List<EmailHeader> headers) setImportant(boolean important) setSubject(String subject) 
- 
Method Details- 
createEmailInfo emailInfo = EmailInfo.create() .setAddresses("john.doe@company.com,jane.roe@company.com") .setSubject("Company news") .setBody("Some content") .build();
- 
createEmailInfo emailInfo = EmailInfo.create("john.doe@company.com,jane.roe@company.com", "Company news", "Some content").build();- Parameters:
- addresses- comma or semicolon separated list of addresses
- subject- email subject
- body- email body
 
- 
setAddresses- Parameters:
- addresses- Recipient email addresses separated with "," or ";" symbol.
 
- 
getAddresses
- 
getCc
- 
setCc
- 
getBcc
- 
setBcc
- 
getSubject
- 
setSubject- Parameters:
- subject- email subject
 
- 
getFrom
- 
setFrom- Parameters:
- from- "from" address. If null, a default provided by- jmix.email.fromAddressapp property is used.
 
- 
getBody
- 
setBody- Parameters:
- body- email body
 
- 
getBodyContentType
- 
setBodyContentType- Parameters:
- bodyContentType- email body like "text/plain; charset=UTF-8" or "text/html; charset=UTF-8", etc
 
- 
setImportant- Parameters:
- important- from- SendingMessage
 
- 
getImportant
- 
getAttachments
- 
setAttachments- Parameters:
- attachments- email attachments
 
- 
setAttachments
- 
addAttachment
- 
getHeaders
- 
setHeaders
- 
addHeader
- 
build
 
-