Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Read email bodies as text, not binary
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-lane committed Dec 17, 2023
1 parent 7190f84 commit e30719b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/donation_mail_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class DonationMailGenerator():
subject = 'reBOOT Canada Donation Receipt'

def __init__(self):
with open(self.getfp('txt/donation_email_raw_body.txt'), 'rb') as f:
with open(self.getfp('txt/donation_email_raw_body.txt'), 'r') as f:
self.raw_body = f.read()
with open(self.getfp('html/donation_email_body.html'), 'rb') as f:
with open(self.getfp('html/donation_email_body.html'), 'r') as f:
self.body = f.read()
with open(self.getfp('img/reboot-black.png'), 'rb') as f:
self.reboot_img = f.read()
Expand Down

0 comments on commit e30719b

Please sign in to comment.