Permalink
Browse files

typo in web.sendmail (pulled from webpy.dev)

  • Loading branch information...
1 parent bdcd373 commit 9162d3959129c455abeaf845301fdb87400d9224 @anandology anandology committed Dec 15, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 trunk/web/utils.py
View
@@ -810,14 +810,14 @@ def sendmail(from_address, to_address, subject, message, headers=None):
if headers is None: headers = {}
- headers = dictadd(headers, {
+ headers = dictadd({
'MIME-Version': '1.0',
'Content-Type': 'text/plain; charset=UTF-8',
'Content-Disposition': 'inline',
'From': from_address,
'To': to_address,
'Subject': subject
- })
+ }, headers)
import email
from_address = email.Utils.parseaddr(from_address)[1]

0 comments on commit 9162d39

Please sign in to comment.