do-not-reply disclaimer
smbaker [Fri, 26 Oct 2012 23:24:48 +0000 (16:24 -0700)]
apps/gacks/gacksbilling.py

index 30901d2..2077812 100644 (file)
@@ -153,6 +153,7 @@ class GacksBilling:
         text += "https://vicci.org/db/gacks/invoices.php?account_name=%s&start_date=%d&end_date=%d&state=3&account_token=%s\n\n" % (account.name, start_date, end_date, account_token)
         text += "Sincerely,\n"
         text += "Vicci.org\n\n"
+        text += "This email was sent from a notification-only address that cannot accept incoming email. Please do not reply to this message."
         return (text, has_activity)
 
    def mail_invoice(self, account, end_date=None, days=7, email_list=[], send_blank=False):
@@ -166,6 +167,7 @@ class GacksBilling:
             msg["From"] = "billing@vicci.org"
             msg["To"] = email
             msg["Subject"] = "Vicci Invoice"
+            msg["Reply-To"] = "do-not-reply@vicci.org"
             p = Popen(["/usr/sbin/sendmail", "-t"], stdin=PIPE)
             p.communicate(msg.as_string())