Compare commits
1 commit
master
...
fix-html-e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
21a71a9a41 |
2 changed files with 2 additions and 3 deletions
|
@ -287,12 +287,11 @@ class MailSender(threading.Thread):
|
|||
|
||||
# by default we are going to assume that the email is going to be text
|
||||
msg_text = MIMEText(text, 'plain', 'utf-8')
|
||||
msg.attach(msg_text)
|
||||
if html:
|
||||
msg_html = MIMEText(html, 'html', 'utf-8')
|
||||
msg.attach(msg_html)
|
||||
|
||||
msg.attach(msg_text)
|
||||
|
||||
try:
|
||||
self._send_email_message(msg, contacts)
|
||||
LOG.debug('%s : Email sent to %s' % (alert.get_id(),
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import setuptools
|
||||
|
||||
version = '5.2.0'
|
||||
version = '5.2.1'
|
||||
|
||||
setuptools.setup(
|
||||
name="alerta-mailer",
|
||||
|
|
Loading…
Add table
Reference in a new issue