Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Nick Satterly
21a71a9a41 [alerta-mailer] Fix HTML emails 2019-05-17 14:53:38 +02:00
2 changed files with 2 additions and 3 deletions
integrations/mailer

View file

@ -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(),

View file

@ -2,7 +2,7 @@
import setuptools
version = '5.2.0'
version = '5.2.1'
setuptools.setup(
name="alerta-mailer",