public interface SendMail
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDebug()
Checks the debug flag if it is true or false.
|
String |
sendEmail(String to,
String from,
String subject,
String message)
Sends a simple plain text email.
|
String |
sendEmailMessage(EmailMessage emailMessage)
Sends the given EmailMessage.
|
Collection<String> |
sendEmailMessages(Collection<EmailMessage> emailMessages)
Send email messages.
|
Collection<String> |
sendEmailMessagesWithAtachments(Collection<EmailMessageWithAttachments> emailAttachments)
Send email messages with atachments.
|
String |
sendEmailMessageWithAttachments(EmailMessageWithAttachments emailAttachments)
Sends the EmailMessage thats wrappes from the EmailMessagWithAttachments.
|
void |
setDebug(boolean debug)
Sets the debug flag.
|
boolean isDebug()
String sendEmail(String to, String from, String subject, String message) throws javax.mail.internet.AddressException, UnsupportedEncodingException, javax.mail.MessagingException
to - The to Address.from - The from Address.subject - The subject from the email.message - The Message from the email.javax.mail.internet.AddressException - the address exceptionUnsupportedEncodingException - if an error occurs by encoding.javax.mail.MessagingException - if an error occurs by sending the message.String sendEmailMessage(EmailMessage emailMessage) throws javax.mail.MessagingException
emailMessage - The EmailMessage to send.javax.mail.MessagingException - if an error occurs.Collection<String> sendEmailMessages(Collection<EmailMessage> emailMessages) throws javax.mail.MessagingException
emailMessages - the email messagesjavax.mail.MessagingException - the messaging exceptionCollection<String> sendEmailMessagesWithAtachments(Collection<EmailMessageWithAttachments> emailAttachments) throws javax.mail.MessagingException
emailAttachments - the email attachmentsjavax.mail.MessagingException - if an error occurs.String sendEmailMessageWithAttachments(EmailMessageWithAttachments emailAttachments) throws javax.mail.MessagingException
emailAttachments - The EmailAttachments who wrappes the EmailMessage.javax.mail.MessagingException - if an error occurs.void setDebug(boolean debug)
debug - The debug flag to set.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.