类 EmailUtil
java.lang.Object
plus.hiver.common.utils.EmailUtil
邮件发送工具类
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明构造函数voidsendInlineResourceMail(String to, String subject, String htmlContent, String resourcePath, String resourceId, boolean isHtml, String... filePaths) 发送带内联资源的邮件(如图片)voidsendSimpleMail(String to, String subject, String htmlContent, boolean isHtml, String... filePaths) 发送普通邮件voidsendTemplateMail(String to, String subject, String templateName, org.thymeleaf.context.Context context, String... filePaths) 使用Thymeleaf模板发送邮件
-
构造器详细资料
-
EmailUtil
public EmailUtil()
-
-
方法详细资料
-
getEmailSetting
构造函数- 返回:
-
sendSimpleMail
@Async public void sendSimpleMail(String to, String subject, String htmlContent, boolean isHtml, String... filePaths) 发送普通邮件- 参数:
to-subject-htmlContent-isHtml-filePaths-
-
sendInlineResourceMail
@Async public void sendInlineResourceMail(String to, String subject, String htmlContent, String resourcePath, String resourceId, boolean isHtml, String... filePaths) 发送带内联资源的邮件(如图片)- 参数:
to-subject-htmlContent-resourcePath-resourceId-isHtml-filePaths-
-
sendTemplateMail
@Async public void sendTemplateMail(String to, String subject, String templateName, org.thymeleaf.context.Context context, String... filePaths) 使用Thymeleaf模板发送邮件- 参数:
to-subject-templateName-context-filePaths-
-