Skip to content

Commit ba79e3d

Browse files
committed
updated email body text
1 parent 329f03a commit ba79e3d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ssl_monitor.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,12 @@ def send_email_notification(receiver_email, smtp_info, domain, days_left=None, e
4848
This is an automatic notification.
4949
5050
The SSL certificate for the {} domain was not verified because of the error: {}
51-
52-
Please take the necessary steps and renew your certificate to ensure the security of your server.
5351
""".format(domain, str(err))
5452
html = """
5553
<html>
5654
<body>
5755
<p>This is an automatic notification.</p>
58-
<p>The SSL certificate for the {} domain was not verified because of the error: {}
59-
<p>Please take the necessary steps and renew your certificate to ensure the security of your server.</p>
56+
<p>The SSL certificate for the {} domain was not verified because of an error: <b>{}</b>
6057
</body>
6158
</html>
6259
""".format(domain, str(err))
@@ -66,7 +63,7 @@ def send_email_notification(receiver_email, smtp_info, domain, days_left=None, e
6663
if days_left:
6764
message["Subject"] = "%s certificate expires in %d days" % (domain, days_left, )
6865
else:
69-
message["Subject"] = "%s certificate was not verified" % domain
66+
message["Subject"] = "%s certificate was not verified due to an error" % domain
7067
message["From"] = smtp_info['from']
7168
message["To"] = receiver_email
7269
message.attach(MIMEText(text, "plain"))

0 commit comments

Comments
 (0)