help_text = _("The address that will show up on the 'from' field on emails sent by your website."),\r
required=False))\r
\r
+DEFAULT_REPLY_TO_EMAIL = Setting('DEFAULT_REPLY_TO_EMAIL', '', EMAIL_SET, dict(\r
+label = _("Site 'reply-to' Email Address"),\r
+help_text = _("The address that will show up on the 'reply-to' field on emails sent by your website."),\r
+required=False))\r
+\r
EMAIL_SUBJECT_PREFIX = Setting('EMAIL_SUBJECT_PREFIX', '', EMAIL_SET, dict(\r
label = _("Email Subject Prefix"),\r
help_text = _("Every email sent through your website will have the subject prefixed by this string. It's usually a good idea to have such a prefix so your users can easily set up a filter on their email clients."),\r
sender.append('<%s>' % unicode(settings.DEFAULT_FROM_EMAIL))
sender = u'%s <%s>' % (unicode(settings.APP_SHORT_NAME), unicode(settings.DEFAULT_FROM_EMAIL))
+ reply_to = unicode(settings.DEFAULT_REPLY_TO_EMAIL)
+
try:
connection = None
to.append('<%s>' % recipient.email)
msgRoot['To'] = to
+ if reply_to:
+ msgRoot['Reply-To'] = reply_to
+
msgRoot.preamble = 'This is a multi-part message from %s.' % unicode(settings.APP_SHORT_NAME).encode('utf8')
msgAlternative = MIMEMultipart('alternative')