28 Commits

Author SHA1 Message Date
cocide
e66725e23f Added formatting on ping.body in emails
Not all email clients are formatting the `ping.body` contents uniformly. Even using different applications from the same email provider results in a different display of the `ping.body` contents. There are two basic issues:
* Not all email clients are honoring the fixed-width font that should be used inside `<pre>` tags. Using fixed-width font is listed in the definition on https://www.w3schools.com/tags/tag_pre.asp
* Not all email clients are displaying the text with a 1em line height. This was a recent change to the healthchecks WebUI in 9fd9c8e4efd0c87c015215ae56eada88a7d07b6b but is not part of the definition of the `<pre>` tag. I'd like to add this to the emails to make Healthchecks more uniform between the website and the email notification.

Gmail Webmail:
- [x] Is using fixed-width font
- [ ] Line height is set by the webmail client to 18px
Gmail Android App:
- [ ] Text is not fixed-width
- [ ] Line height has extra padding

ProtonMail Webmail:
- [x] Is using fixed-width font
- [x] Line height is correct
ProtonMail Android:
- [ ] Text is not fixed width
- [ ] Line height has extra padding

The testing I performed is not extensive, but it does show how multiple clients are displaying the contents differently. To make the display of the `ping.body` more uniform I'd like to add a bit of formatting information to the `<pre>` tag.
2021-03-08 12:38:48 +02:00
Pēteris Caune
2bfea987e9
Replace details_url with cloaked_url in email and chat notifications 2021-03-04 16:55:05 +02:00
Pēteris Caune
54081208c5
Add doctype declaration in the alert email template
Need it to escape quirks mode in email clients.
2020-12-29 16:08:23 +02:00
Pēteris Caune
ca3d1d3a3b
Add the "Last Ping Type" field in the email notification template 2020-12-28 17:34:58 +02:00
Pēteris Caune
ce0f84a112
Fix styling 2020-12-26 18:19:55 +02:00
Pēteris Caune
8fe8e0f605
Update alert email template: more information, less styling
Fixes: #348
2020-12-26 18:11:36 +02:00
Pēteris Caune
0addbac7ba
Remove unused ask=1 parameters. 2019-12-10 09:27:30 +02:00
Pēteris Caune
44bac9dd12
Include the description in email alerts. Fixes #247 2019-05-02 14:10:10 +03:00
Pēteris Caune
eaba39d99b
Tweak HTML markup in alert emails for Gmail 2018-11-27 18:37:53 +02:00
Pēteris Caune
01d94176dd
Tweak HTML and CSS in alert emails. 2018-11-14 11:04:48 +02:00
Pēteris Caune
b3c22dcfd2
A workaround for some email agents automatically opening "Unsubscribe" links 2018-11-09 22:12:11 +02:00
Pēteris Caune
b9a81ad382
Add "List-Unsubscribe" header to alert and report emails 2018-10-23 11:26:13 +03:00
Pēteris Caune
78aca869c5
"Details..." instead of "Show Log..." in emails. 2018-08-20 19:30:36 +03:00
Pēteris Caune
882933668a Natural sort for check names, fixes #136.
Apply the user's chosen sort order in emails also.
2017-10-15 13:34:34 +03:00
Pēteris Caune
6a1c5dd3b7 "Unsubscribe" link in alert emails. Fixes #111 2017-01-28 12:17:22 +02:00
Pēteris Caune
8d956b3365 email template from Litmus. CSS already inlined, so dropping premailer dependency. 2017-01-15 13:10:08 +02:00
James Moore
1ae07b2028 made changes more concise 2016-09-22 14:56:15 -07:00
James Moore
b1bb1540b8 adds a SITE_NAME setting that's used to label the site 2016-09-22 13:40:35 -07:00
Pēteris Caune
8ba981cb52 Upgrade link in alert emails. 2016-07-19 23:17:53 +03:00
Di Wu
4705186434 Update alert-body-html.html 2016-06-28 15:37:33 -07:00
Pēteris Caune
abd19ac901 Nicer alert email template, and plain text versions for all emails. 2016-06-25 05:59:48 +03:00
Pēteris Caune
ce23d65ebf Check.get_status() returns "up" also during grace period 2016-06-21 02:22:51 +03:00
Pēteris Caune
1f70f56819 Check model gets "in_grace_period" method. It replaces the transient "grace" status. Also, remove references of the obsolete "paused" status. 2016-06-20 20:35:02 +03:00
Pēteris Caune
da613963e9 Email alerts and monthly reports have links to Log pages.
Don't show ping URLs -- gmail converts them to clickable links, and people click on them.
2016-03-08 10:35:39 +02:00
Pēteris Caune
91e6f80d9a Code to send monthly reports (but no management command yet to actually send them) 2015-12-15 02:27:24 +02:00
Pēteris Caune
c1840a92bd Checks now have a new status: "paused". sendalerts management command will mark checks as paused if sending a notification throws exception. This should avoid potential infinite loops of sendalerts crashes/respawns. 2015-10-30 14:21:12 +02:00
Pēteris Caune
cee2b52d3e More tests. 2015-08-18 21:17:13 +03:00
Pēteris Caune
f0089e2cd2 Send emails using djmail, can verify email addresses in /channels/ 2015-08-14 10:56:07 +03:00