Browse Source

prettified notification mail

Hendrik Sünkler 8 years ago
parent
commit
2dea903ff3
1 changed files with 43 additions and 37 deletions
  1. 43
    37
      posttls/core/templates/core/mail_template.html

+ 43
- 37
posttls/core/templates/core/mail_template.html View File

@@ -1,40 +1,46 @@
1 1
 <html>
2
-<body style="background: #eeeeee;">
3
-
4
-<table style="width: 100%; max-width: 630px; background: white; border: 1px solid #eaeaea; padding: 20px;">
5
-    <tr>
6
-        <td>
7
-            <p style="font-size: 14px; font-weight: bold;">Hi!</p>
8
-            <p style="font-size: 14px;">This is your mail server. I'm afraid, but I couldn't send the following email to the mentioned recipients securely:</p>
9
-
10
-            <ul>
11
-                <li style='font-size: 14px;'>Recipient(s): {{ recipients }}</li>
12
-                <li style='font-size: 14px;'>Date: {{ date }}</li>
13
-                <li style='font-size: 14px;'>Subject: {{ subject }}</li>
14
-            </ul>
15
-
16
-            {% if deleted %}
17
-                <p style="font-size: 14px;">Since our company policy requires TLS
18
-                    encryption for the recipient(s) mentioned above, your mail was deleted.
19
-                    Please find a different - and secure - channel for communication.</p>
20
-            {% else %}
21
-
22
-                <p style="font-size: 14px;">Please tell me how you want me to handle this case:</p>
23
-
24
-                <p>
25
-                    <a href='https://{{postfix_tls_host}}:8080/?queue_id={{queue_id}}&action=redirect' style='text-decoration: none;'>
26
-                        <button style="font-size: 14px; color: white; cursor: pointer; margin-left: 0px; margin-top: 10px; color: white; border: 0; border-radius: 4px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); background: rgb(223, 166, 53); padding: 10px;">Send unencrypted</button>
27
-                    </a>
28
-                    <a href='https://{{postfix_tls_host}}:8080/?queue_id={{queue_id}}&action=delete' style='text-decoration: none;'>
29
-                        <button style="font-size: 14px; color: white; cursor: pointer; margin-left: 0px; margin-top: 10px; color: white; border: 0; border-radius: 4px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); background: rgb(28, 184, 65); padding: 10px;">Delete message</button>
30
-                    </a>
31
-                </p>
32
-            {% endif %}
33
-
34
-            <p style='font-size: 14px; margin-top: 25px;'>If you have any questions, please contact your <a href="mailto:{{postfix_sysadmin_mail_address}}" style="color: black;">System Administrator</a>.</p>
35
-        </td>
36
-    </tr>
37
-
38
-</table>
2
+<body>
3
+<div id="mail_body" style="padding: 10px;">
4
+
5
+<!-- Header -->
6
+<div id="header" style="margin: 0; padding: 0; background: #3f93ad; height: 5px;"></div>
7
+
8
+    <p style="font-size: 14px; font-weight: bold;">Hi!</p>
9
+
10
+    <p style="font-size: 14px;">This is your mail server. I'm afraid, but I couldn't send the following email to the mentioned recipients securely:</p>
11
+
12
+    <ul>
13
+        <li style='font-size: 14px;'>Recipient(s): {{ recipients }}</li>
14
+        <li style='font-size: 14px;'>Date: {{ date }}</li>
15
+        <li style='font-size: 14px;'>Subject: {{ subject }}</li>
16
+    </ul>
17
+
18
+    {% if deleted %}
19
+    <p style="font-size: 14px;">Since our company policy requires TLS
20
+        encryption for the recipient(s) mentioned above, your mail was deleted.
21
+        Please find a different - and secure - channel for communication.</p>
22
+    {% else %}
23
+
24
+    <p style="font-size: 14px;">Please tell me how you want me to handle this case:</p>
25
+
26
+    <p>
27
+        <a href='https://{{postfix_tls_host}}:8080/?queue_id={{queue_id}}&action=redirect' style='text-decoration: none;'>
28
+       <button style="font-size: 14px; color: black; cursor: pointer; margin-left: 0px; margin-top: 10px; border: 0; border-radius: 4px; background: rgb(220, 220, 220); padding: 10px;">Send unencrypted</button>
29
+       </a>
30
+       <a href='https://{{postfix_tls_host}}:8080/?queue_id={{queue_id}}&action=delete' style='text-decoration: none;'>
31
+       <button style="font-size: 14px; color: black; cursor: pointer; margin-left: 0px; margin-top: 10px; border: 0; border-radius: 4px; background: rgb(220, 220, 220); padding: 10px;">Delete message</button>
32
+       </a>
33
+    </p>
34
+    {% endif %}
35
+
36
+    <p style='font-size: 14px; margin-top: 25px;'>If you have any questions, please contact your <a href="mailto:{{postfix_sysadmin_mail_address}}" style="color: black;">System Administrator</a>.</p>
37
+
38
+    <!-- Footer -->
39
+    <div id="footer" style="font-size: 12px; margin: 0; padding: 0; color: grey;">
40
+        This message was sent by <a href="https://posttls.com" style="color: grey;">PostTLS</a>.<br>
41
+        PostTLS is Open Source Software and available under the MIT License.
42
+    </div>
43
+
44
+</div>
39 45
 </body>
40 46
 </html>

Loading…
Cancel
Save