Package com.day.cq.mailer
Interface MailingService
public interface MailingService
Service Interface to send a Mailing
A Mailing is a
A Mailing is a
MessageTemplate that
is intended to be send to a List of recipients.
- Since:
- 5.4
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.send(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver) Send aMailingto.
-
Method Details
-
getStatus
Deprecated.It's recommended to usegetStatus(String, javax.jcr.Session)instead.- Parameters:
mailingId- to access the MailingStatus- Returns:
- or
nullif the mailing has not be sent does not exist - Throws:
RepositoryException- in case of an exception accessing the Repository- See Also:
-
getStatus
- Parameters:
mailingId- to access the MailingStatussession- to read the Node having MailingStatus- Returns:
- or
nullif the mailing has not be sent does not exist - Throws:
RepositoryException- in case of an exception accessing the Repository- See Also:
-
send
MailingStatus send(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver) throws MailingException, RepositoryException Send aMailingto.- Parameters:
message- to be sendrecipients- of the messageresourceResolver- Resource resolver- Returns:
- the mailing created for send
- Throws:
MailingException- in case the sending could not be startedAccessDeniedException- in case the session lacks privileges to send the MailingRepositoryException- in case of error accessing the RepositoryMailingException- If an error occurs
-
getStatus(String, javax.jcr.Session)instead.