Browse Source

邮件模板

zhangheng 3 years ago
parent
commit
9b656d71d0

+ 30 - 0
app/davinci-ui/mail/emailDefaultTemplate.html

@@ -0,0 +1,30 @@
+<!--
+  ~ <<
+  ~  Davinci
+  ~  ==
+  ~  Copyright (C) 2016 - 2019 EDP
+  ~  ==
+  ~  Licensed under the Apache License, Version 2.0 (the "License");
+  ~  you may not use this file except in compliance with the License.
+  ~  You may obtain a copy of the License at
+  ~        http://www.apache.org/licenses/LICENSE-2.0
+  ~   Unless required by applicable law or agreed to in writing, software
+  ~   distributed under the License is distributed on an "AS IS" BASIS,
+  ~   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~   See the License for the specific language governing permissions and
+  ~   limitations under the License.
+  ~  >>
+  ~
+  -->
+
+<!DOCTYPE html>
+
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
+<body>
+    <p th:if="${text}" th:text="${text}"></p>
+    <p th:if="${html}" th:utext="${html}"></p>
+    <div th:if="${images}">
+        <img th:each="image:${images}" th:src="@{'cid:' + ${image}}" style="width: 96%; height: 96%; display: block; margin: 2% auto;" />
+    </div>
+</body>
+</html>

+ 33 - 0
app/davinci-ui/mail/scheduleEmailTemplate.html

@@ -0,0 +1,33 @@
+<!--
+  ~ <<
+  ~  Davinci
+  ~  ==
+  ~  Copyright (C) 2016 - 2019 EDP
+  ~  ==
+  ~  Licensed under the Apache License, Version 2.0 (the "License");
+  ~  you may not use this file except in compliance with the License.
+  ~  You may obtain a copy of the License at
+  ~        http://www.apache.org/licenses/LICENSE-2.0
+  ~   Unless required by applicable law or agreed to in writing, software
+  ~   distributed under the License is distributed on an "AS IS" BASIS,
+  ~   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~   See the License for the specific language governing permissions and
+  ~   limitations under the License.
+  ~  >>
+  ~
+  -->
+
+<!DOCTYPE html>
+
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
+<body>
+<h3>Hi~
+</h3>
+<p>
+    &emsp;&emsp;This email comes from cron job on the Davinci
+</p>
+<p th:if="${images}">
+    <img th:each="image:${images}" th:src="@{'cid:' + ${image}}" style="max-width: 90%; max-height: 90%"/></br>
+</p>
+</body>
+</html>