Skip to content

Commit

Permalink
Merge pull request #40 from gisce/fix_MIMEMultipart
Browse files Browse the repository at this point in the history
Fix: Don't use subtype alternative
  • Loading branch information
eberloso authored Dec 22, 2017
2 parents 06ea4b8 + 83f637c commit ca13adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poweremail_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def send_mail(self, cr, uid, ids, addresses, subject='', body=None, payload=None
serv = self.smtp_connection(cr, uid, id)
if serv:
try:
msg = MIMEMultipart(_subtype='alternative')
msg = MIMEMultipart()
for header, value in context.get('headers', {}).items():
msg.add_header(header, value)
if subject:
Expand Down

0 comments on commit ca13adc

Please sign in to comment.