Package io.datarouter.email.email
Class EmailService
java.lang.Object
io.datarouter.email.email.EmailService
@Singleton public class EmailService extends Object
-
Constructor Summary
Constructors Constructor Description EmailService() -
Method Summary
Modifier and Type Method Description voidsend(String fromEmail, String toEmails, String subject, String body, boolean html)Deprecated.voidsend(String fromEmail, Collection<String> toEmails, String subject, String body, boolean html)Optional<String>sendAndGetMessageId(String fromEmail, Collection<String> toEmails, Collection<String> replyToEmails, String subject, String body, boolean html, Map<String,String> headers, List<DatarouterEmailFileAttachmentDto> fileAttachmentDtos)voidtrySend(String fromEmail, String toEmails, String subject, String body)Deprecated.voidtrySend(String fromEmail, String toEmails, String subject, String body, boolean html)Deprecated.voidtrySend(String fromEmail, Collection<String> toEmails, String subject, String body)voidtrySend(String fromEmail, Collection<String> toEmails, String subject, String body, boolean html)
-
Constructor Details
-
EmailService
public EmailService()
-
-
Method Details
-
trySend
Deprecated. -
trySend
-
trySend
@Deprecated public void trySend(String fromEmail, String toEmails, String subject, String body, boolean html)Deprecated. -
trySend
public void trySend(String fromEmail, Collection<String> toEmails, String subject, String body, boolean html) -
send
@Deprecated public void send(String fromEmail, String toEmails, String subject, String body, boolean html) throws javax.mail.MessagingExceptionDeprecated.- Throws:
javax.mail.MessagingException
-
send
public void send(String fromEmail, Collection<String> toEmails, String subject, String body, boolean html) throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
sendAndGetMessageId
public Optional<String> sendAndGetMessageId(String fromEmail, Collection<String> toEmails, Collection<String> replyToEmails, String subject, String body, boolean html, Map<String,String> headers, List<DatarouterEmailFileAttachmentDto> fileAttachmentDtos) throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-