18 package org.turro.action;
21 import java.util.Collection;
23 import java.util.function.Consumer;
24 import java.util.function.Supplier;
25 import org.apache.commons.mail.EmailException;
26 import org.turro.action.queue.NotificationCategory;
27 import org.turro.plugin.contacts.IContact;
66 public void send(String subject, String message);
70 public void sendTemplate(String
template, String subject)
throws EmailException;
71 public void sendTemplate(Object entity, String
template, String subject)
throws EmailException;
void silentSendTemplate(Object entity, String template, String subject)
void sendTemplate(NotificationCategory category, Object entity, String template, String subject)
IMailSender addMailAttachments(Collection< MailAttachment > files)
IMailSender onFinish(Consumer command)
IMailSender setFrom(IContact contact)
IMailSender put(Object key, Object value)
IMailSender setReason(String reason)
String processMacros(IContact contact, String text, boolean web)
void sendTemplate(Object entity, String template, String subject)
void sendTemplate(String template, String subject)
IMailSender addAttachment(File file)
IMailSender setCategory(String idCategory)
void silentSendTemplate(String template, String subject)
void send(String subject, String message)
IMailSender onStart(Consumer command)
IMailSender putIf(Object key, Supplier< Boolean > condition, Supplier value)
IMailSender onCancel(Consumer command)
IMailSender onBuild(Consumer command)
IMailSender setPool(String pool)
IMailSender putAll(Map attributes)
void silentSendTemplate(NotificationCategory category, Object entity, String template, String subject)
IMailSender setRoot(String root)
void send(NotificationCategory category, String subject, String message)
IMailSender addAttachments(Collection< File > files)