Package de.mhus.lib.core.mail
Interface MSendMail
-
- All Known Implementing Classes:
DefaultSendMail
public interface MSendMailFacade to hide javax.mail packages. Using this interface do not need to add dependency to javax.mail. Use Transport interface to access mail package.- Author:
- mikehummel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MailTransportgetMailTransport()default voidsendHtmlMail(String from, String[] to, String[] cc, String[] bcc, String subject, String html, MailAttachment[] attachments)voidsendMail(Mail mail)default voidsendPlainMail(String from, String[] to, String[] cc, String[] bcc, String subject, String content)
-
-
-
Method Detail
-
sendPlainMail
default void sendPlainMail(String from, String[] to, String[] cc, String[] bcc, String subject, String content) throws Exception
- Throws:
Exception
-
sendHtmlMail
default void sendHtmlMail(String from, String[] to, String[] cc, String[] bcc, String subject, String html, MailAttachment[] attachments) throws Exception
- Throws:
Exception
-
getMailTransport
MailTransport getMailTransport() throws Exception
- Throws:
Exception
-
-