Skip to content

Commit da7e8b2

Browse files
author
Matthew Borger
committed
fixup! fixup! Added option to save generated emails to a given folder instead of sending via SMTP.
1 parent 0065e85 commit da7e8b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libpius/mailer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _send_mail(self, to, msg):
258258
msg['To'] = self.address_override
259259
else:
260260
msg['To'] = to
261-
msg['BCC'] = self.mail
261+
msg['Bcc'] = self.mail
262262
msg['Date'] = formatdate(localtime=True)
263263

264264
if self.local_mail_dir:
@@ -302,6 +302,6 @@ def _send_mail(self, to, msg):
302302

303303
def _to_addrs(self, msg):
304304
to_addrs = [msg['To']]
305-
if msg['BCC']:
306-
to_addrs.append(msg['BCC'])
305+
if msg['Bcc']:
306+
to_addrs.append(msg['Bcc'])
307307
return to_addrs

0 commit comments

Comments
 (0)