feature: 邮件附加TanCloud官网外链 #I4U9BT

This commit is contained in:
chenghua
2022-02-19 22:31:32 +08:00
parent 918e086299
commit a7c7bc6bf9
2 changed files with 6 additions and 2 deletions

View File

@@ -154,7 +154,8 @@ public class DispatchAlarm {
messageHelper.setSentDate(new Date()); messageHelper.setSentDate(new Date());
//构建邮件模版 //构建邮件模版
String process = mailService.buildHTMLTemplate(alert); String process = mailService.buildHTMLTemplate(alert);
messageHelper.setText(process,true); //设置邮件内容模版 //设置邮件内容模版
messageHelper.setText(process,true);
javaMailSender.send(mimeMessage); javaMailSender.send(mimeMessage);
}catch (Exception e){ }catch (Exception e){
log.error("[邮箱告警] errorException information={}",e.getMessage()); log.error("[邮箱告警] errorException information={}",e.getMessage());

View File

@@ -178,6 +178,7 @@
style="display: flex;justify-content: flex-start;align-items: center;flex-direction: column;width: 100%;"> style="display: flex;justify-content: flex-start;align-items: center;flex-direction: column;width: 100%;">
<section <section
style="height: 0px;width: 52px;align-self: flex-start;z-index: 1;transform: translate(17px, -9px);"> style="height: 0px;width: 52px;align-self: flex-start;z-index: 1;transform: translate(17px, -9px);">
<!--//todo 图片代办更换-->
<img th:src="@{https://pic.imgdb.cn/item/61657b052ab3f51d912bcf60.png}" <img th:src="@{https://pic.imgdb.cn/item/61657b052ab3f51d912bcf60.png}"
style="display: block;"> style="display: block;">
</section> </section>
@@ -198,6 +199,7 @@
</section> </section>
<section <section
style="display: flex;justify-content: center;align-items: center;width: 100%;"> style="display: flex;justify-content: center;align-items: center;width: 100%;">
<!--//todo 图片代办更换-->
<section style="width: 66px;margin: 0px 13px 0px 16px;"><img <section style="width: 66px;margin: 0px 13px 0px 16px;"><img
th:src="@{https://pic.imgdb.cn/item/61656ad22ab3f51d9114d897.jpg}" th:src="@{https://pic.imgdb.cn/item/61656ad22ab3f51d9114d897.jpg}"
style="display: block; width: 110px; height: 110px;"> style="display: block; width: 110px; height: 110px;">
@@ -248,6 +250,7 @@
</section> </section>
<section <section
style="width: 52px;height: 0px;z-index: 1;align-self: flex-end;transform: translate(-10px, -3px);"> style="width: 52px;height: 0px;z-index: 1;align-self: flex-end;transform: translate(-10px, -3px);">
<!--//todo 图片代办更换-->
<img th:src="@{https://pic.imgdb.cn/item/61657b052ab3f51d912bcf60.png}" <img th:src="@{https://pic.imgdb.cn/item/61657b052ab3f51d912bcf60.png}"
style="display: block;"> style="display: block;">
</section> </section>
@@ -309,7 +312,7 @@
</section> </section>
</section> </section>
</section> </section>
<p><br></p> <p style="text-align: center" ><a href="https://hertzbeat.com/">TanCloud探云&nbsp; </a><br></p>
<p><br></p> <p><br></p>
</section> </section>