public interface EmailFactory
Emails.| Modifier and Type | Method and Description |
|---|---|
Email |
getEmail(String from,
String[] to,
String[] cc,
String[] bcc,
String subject,
String body,
boolean html,
File... attachments)
Creates a new
Email. |
Email |
getEmail(String from,
String[] to,
String[] cc,
String[] bcc,
String subject,
String templateName,
Object templateModel,
boolean html,
File... attachments)
Creates a new
Email. |
Email |
getEmail(String from,
String[] to,
String[] cc,
String[] bcc,
String replyTo,
String subject,
String body,
boolean html,
File... attachments)
Creates a new
Email. |
Email |
getEmail(String from,
String[] to,
String[] cc,
String[] bcc,
String replyTo,
String subject,
String templateName,
Object templateModel,
boolean html,
File... attachments)
Creates a new
Email. |
Email getEmail(String from, String[] to, String[] cc, String[] bcc, String subject, String body, boolean html, File... attachments) throws EmailException
Email.from - the sender's addressto - the recipients' addresses (optional)cc - the CC recipients' addresses (optional)bcc - the BCC recipients' addresses (optional)subject - the subject of the emailbody - the text body of the emailhtml - if the body is in HTML formatattachments - the attachments to add to the emailEmailExceptionEmail getEmail(String from, String[] to, String[] cc, String[] bcc, String replyTo, String subject, String body, boolean html, File... attachments) throws EmailException
Email.from - the sender's addressto - the recipients' addresses (optional)cc - the CC recipients' addresses (optional)bcc - the BCC recipients' addresses (optional)replyTo - the address to reply tosubject - the subject of the emailbody - the text body of the emailhtml - if the body is in HTML formatEmailExceptionEmail getEmail(String from, String[] to, String[] cc, String[] bcc, String subject, String templateName, Object templateModel, boolean html, File... attachments) throws EmailException
Email.from - the sender's addressto - the recipients' addresses (optional)cc - the CC recipients' addresses (optional)bcc - the BCC recipients' addresses (optional)subject - the subject of the emailtemplateName - the template name of the emailtemplateModel - the template model of the emailhtml - if the body is in HTML formatEmailExceptionEmail getEmail(String from, String[] to, String[] cc, String[] bcc, String replyTo, String subject, String templateName, Object templateModel, boolean html, File... attachments) throws EmailException
Email.from - the sender's addressto - the recipients' addresses (optional)cc - the CC recipients' addresses (optional)bcc - the BCC recipients' addresses (optional)replyTo - the address to reply tosubject - the subject of the emailtemplateName - the template name of the emailtemplateModel - the template model of the emailhtml - if the body is in HTML formatEmailExceptionCopyright © 2018 CrafterCMS. All rights reserved.