com.day.cq.mailer
Interface MailingService


public interface MailingService

Service Interface to send a Mailing
A Mailing is a MessageTemplate that is intended to be send to a List of recipients.

Since:
5.4

Method Summary
 MailingStatus getStatus(String mailingId)
           
 MailingStatus send(MessageTemplate message, MailingList recipients, Session session)
          Send a Mailing to.
 

Method Detail

getStatus

MailingStatus getStatus(String mailingId)
                        throws RepositoryException
Parameters:
mailingId - to access the MailingStatus
Returns:
or null if 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,
                   MailingList recipients,
                   Session session)
                   throws MailingException,
                          RepositoryException
Send a Mailing to.

Parameters:
message - to be send
recipients - of the message
session - to use for sending the mailing
Returns:
the mailing created for send
Throws:
MailingException - in case the sending could not be started
AccessDeniedException - in case the session lacks privileges to send the Mailing
RepositoryException - in case of error accessing the Repository


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.