Commit 083fe8df authored by fred's avatar fred
Browse files

remove hardcoded debug mode

parent f8f49323
......@@ -88,10 +88,7 @@ class Newsletter(models.Model):
msg = MIMEMultipart('alternative')
msg['Subject'] = self.subject
msg['From'] = settings.NEWSLETTER_SENDER
if settings.DEBUG:
msg['To'] = 'fred@localhost'
else:
msg['To'] = '%s@%s' % (settings.NEWSLETTER_NAME, settings.NEWSLETTER_DOMAIN)
msg['To'] = '%s@%s' % (settings.NEWSLETTER_NAME, settings.NEWSLETTER_DOMAIN)
h2t = html2text.HTML2Text()
h2t.unicode_snob = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment