public interface I_CmsNewsletter
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
MACRO_SEND_DATE
Macro for the date.
|
static java.lang.String |
MACRO_USER_EMAIL
Macro for the email address.
|
static java.lang.String |
MACRO_USER_FIRSTNAME
Macro for the firstname.
|
static java.lang.String |
MACRO_USER_FULLNAME
Macro for the full name.
|
static java.lang.String |
MACRO_USER_LASTNAME
Macro for the lastname.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAttachment(CmsObject cms,
CmsResource resource)
Adds a OpenCms resource as an attachment to the newsletter.
|
void |
addContent(I_CmsNewsletterContent content)
Adds content to the newsletter.
|
org.apache.commons.mail.Email |
getEmail(CmsObject cms,
I_CmsNewsletterRecipient recipient)
Returns the newsletter as an e-mail to be sent.
|
void |
setSubject(java.lang.String subject)
Sets the subject.
|
static final java.lang.String MACRO_SEND_DATE
static final java.lang.String MACRO_USER_EMAIL
static final java.lang.String MACRO_USER_FIRSTNAME
static final java.lang.String MACRO_USER_FULLNAME
static final java.lang.String MACRO_USER_LASTNAME
void addAttachment(CmsObject cms, CmsResource resource) throws CmsException
cms - the CmsObjectresource - the resource to attachCmsException - if something goes wrongvoid addContent(I_CmsNewsletterContent content)
content - the content to addorg.apache.commons.mail.Email getEmail(CmsObject cms, I_CmsNewsletterRecipient recipient) throws javax.mail.MessagingException, CmsException
cms - the CmsObjectrecipient - the recipient to which the newsletter will be sentjavax.mail.MessagingException - if something goes wrongCmsException - if something goes wrongvoid setSubject(java.lang.String subject)
subject - the subject to set