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 sendEmailMessageWithAttachments(EmailMessageWithAttachments emailAttachments) throws MessagingException
emailAttachments - The EmailAttachments who wrappes the EmailMessage.MessagingException - if an error occurs.Collection<String> sendEmailMessagesWithAtachments(Collection<EmailMessageWithAttachments> emailAttachments) throws MessagingException
emailAttachments - the email attachmentsMessagingException - if an error occurs.String sendEmailMessage(EmailMessage emailMessage) throws MessagingException
emailMessage - The EmailMessage to send.MessagingException - if an error occurs.Collection<String> sendEmailMessages(Collection<EmailMessage> emailMessages) throws MessagingException
emailMessages - the email messagesMessagingException - the messaging exceptionString sendEmail(String to, String from, String subject, String message) throws AddressException, UnsupportedEncodingException, MessagingException
to - The to Address.from - The from Address.subject - The subject from the email.message - The Message from the email.AddressException - the address exceptionUnsupportedEncodingException - if an error occurs by encoding.MessagingException - if an error occurs by sending the message.void setDebug(boolean debug)
debug - The debug flag to set.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.