Permalink
Browse files

Changes in bill sending.

  • Loading branch information...
guaq committed Mar 3, 2011
1 parent cbf86e4 commit 0d995ebb7c842dff5423f02cb510eb191d8c9a12
Showing with 3 additions and 10 deletions.
  1. +3 −10 membership/models.py
View
@@ -406,17 +406,10 @@ def send_as_email(self):
user_email = EmailMessage(self.bill_subject(),
self.render_as_text(),
settings.BILLING_FROM_EMAIL,
- [membership.billing_email()])
+ [membership.billing_email()],
+ [settings.BILLING_CC_EMAIL],
+ headers={'CC': settings.BILLING_CC_EMAIL})
emails.append(user_email)
- if settings.BILLING_CC_EMAIL:
- # Send a copy
- billing_email = EmailMessage(self.bill_subject(),
- self.render_as_text(),
- settings.BILLING_FROM_EMAIL,
- [settings.BILLING_CC_EMAIL],
- headers={'Reply-To': membership.billing_email()})
- emails.append(billing_email)
-
connection = mail.get_connection()
connection.send_messages(emails)
logger.info('A bill sent as email to %s: %s' % (membership.billing_email(),

0 comments on commit 0d995eb

Please sign in to comment.