Package com.priint.pubserverapi.mail
Interface MailServiceLocal
public interface MailServiceLocal
Local interface for sending emails within the Priint system.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsend(List<Address> recipients, String subject, MessageBody body) Sends an email to the specified recipients with the given subject and message body.voidsend(List<Address> recipients, String subject, MessageBody body, List<Attachment> attachments) Sends an email to the specified recipients with the given subject, message body, and attachments.
-
Method Details
-
send
Sends an email to the specified recipients with the given subject and message body.- Parameters:
recipients- the list of recipients to send the email to.subject- the subject of the email.body- the message body of the email.- Throws:
MailServiceException- if the email cannot be sent.
-
send
void send(List<Address> recipients, String subject, MessageBody body, List<Attachment> attachments) throws MailServiceException Sends an email to the specified recipients with the given subject, message body, and attachments.- Parameters:
recipients- the list of recipients to send the email to.subject- the subject of the email.body- the message body of the email.attachments- the list of attachments to include with the email.- Throws:
MailServiceException- if the email cannot be sent.
-