io._57blocks.email.EmailService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of email-spring-boot-starter Show documentation
Show all versions of email-spring-boot-starter Show documentation
Email service based on spring-boot and provide an easy way to integrate spring-mail or aws ses.
package io._57blocks.email;
import java.util.Locale;
import java.util.Map;
import javax.mail.MessagingException;
public interface EmailService {
void sendTextEmail(String fromEmail, String template, Locale locale,
Map ctx, String... recipientEmails)
throws MessagingException;
void sendTextEmailWithAttachments(String fromEmail, String template, Locale locale,
Map ctx, Attachment[] attachments, String... recipientEmails)
throws MessagingException;
void sendHtmlEmail(String fromEmail, String template, Locale locale,
Map ctx, String... recipientEmails)
throws MessagingException;
void sendHtmlEmailWithAttachments(String fromEmail, String template, Locale locale,
Map ctx, Attachment[] attachments, String... recipientEmails)
throws MessagingException;
}