public final class ZKMailSender extends Object
Modifier and Type | Method and Description |
---|---|
static ZKMailSender |
getInstance()
Returns the instance of the mail sender object.
|
void |
sendAttachmentMessage(List<String> to,
List<ZKMailAttachment> attachments,
String mailMessage,
String subject)
Sends a mail with the given attachment to a mail receiver.
|
void |
sendAttachmentMessage(String[] to,
List<ZKMailAttachment> attachments,
String mailMessage,
String subject)
Sends a mail with the given attachment to a mail receiver.
|
void |
sendPlainMessage(List<String> to,
String mailMessage,
String subject)
Sends a plain message to the given address.
|
void |
sendPlainMessage(String[] to,
String mailMessage,
String subject)
Sends a plain message to the given address.
|
public static ZKMailSender getInstance()
public void sendPlainMessage(String[] to, String mailMessage, String subject) throws javax.mail.MessagingException
to
- To mail addressmailMessage
- Mail messagesubject
- Mail subjectjavax.mail.MessagingException
- Mail exceptionpublic void sendPlainMessage(List<String> to, String mailMessage, String subject) throws javax.mail.MessagingException
to
- To mail addressmailMessage
- Mail messagesubject
- Mail subjectjavax.mail.MessagingException
- Mail exceptionpublic void sendAttachmentMessage(List<String> to, List<ZKMailAttachment> attachments, String mailMessage, String subject) throws javax.mail.MessagingException
to
- To mail addressattachments
- The attachments to be sent.mailMessage
- Mail messagesubject
- Mail subjectjavax.mail.MessagingException
- Mail exceptionpublic void sendAttachmentMessage(String[] to, List<ZKMailAttachment> attachments, String mailMessage, String subject) throws javax.mail.MessagingException
to
- To mail addressattachments
- The attachments to be sent.mailMessage
- Mail messagesubject
- Mail subjectjavax.mail.MessagingException
- Mail exceptionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.