diff options
author | luxagraf <sng@luxagraf.net> | 2020-11-12 10:39:33 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-11-12 10:39:33 -0500 |
commit | a551326ec05f761f58a0ba68b4ca8af95d9e652d (patch) | |
tree | 3c449c61432606a8d41d04b4499739db8fb7b780 /app/lttr/mailer.py | |
parent | 74b2bb76ca3be85092a978ee60d26340c7e789a8 (diff) |
rearranged email templates, added footer to plain text email.
Diffstat (limited to 'app/lttr/mailer.py')
-rw-r--r-- | app/lttr/mailer.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/lttr/mailer.py b/app/lttr/mailer.py index b5b875e..9972ea2 100644 --- a/app/lttr/mailer.py +++ b/app/lttr/mailer.py @@ -72,11 +72,12 @@ class SendShit(): """ subject = smart_str("%s: %s — %s" %(self.mailing.newsletter.title, self.mailing.get_issue_str(), self.mailing.title)) from_email, to = 'Scott Gilbertson <sng@luxagraf.net>', subscriber.get_email() - text_content = self.mailing.email_encode() - html_content = render_to_string('lttr/friends_base.html', {'object': self.mailing, 'subscriber':subscriber}) + text_content = render_to_string('lttr/emails/friends_plain_text_email.txt', {'object': self.mailing, 'subscriber':subscriber}) + html_content = render_to_string('lttr/emails/friends_html_email.html', {'object': self.mailing, 'subscriber':subscriber}) + print(text_content) msg = EmailMultiAlternatives(subject, text_content, from_email, [to]) msg.attach_alternative(html_content, "text/html") - msg.send() + #msg.send() ''' for header, value in self.newsletter.server.custom_headers.items(): |