public interface EmailFactory
Email
s.Modifier and Type | Method and Description |
---|---|
Email |
getEmail(String from,
String[] to,
String[] cc,
String[] bcc,
String subject,
String body,
boolean html)
Creates a new
Email . |
Email |
getEmail(String from,
String[] to,
String[] cc,
String[] bcc,
String subject,
String templateName,
Object templateModel,
boolean html)
Creates a new
Email . |
Email getEmail(String from, String[] to, String[] cc, String[] bcc, String subject, String body, boolean html) 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 formatEmailException
Email getEmail(String from, String[] to, String[] cc, String[] bcc, String subject, String templateName, Object templateModel, boolean html) 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 formatEmailException
Copyright © 2015 CrafterCMS. All Rights Reserved.