Show
Ignore:
Timestamp:
07/23/07 18:25:06 (13 months ago)
Author:
tarek@…
Message:

cachers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mailer/sender.py

    r136 r140  
    2828    """sends the mail by storing it into the DB""" 
    2929    inserter = mail_data.insert() 
     30    if isinstance(msg, unicode): 
     31        msg = msg.encode('utf8') 
     32    if isinstance(subject, unicode): 
     33        subject = subject.encode('utf8') 
     34 
    3035    res = inserter.execute(subject=subject, sender=sender, 
    3136                          recipients=','.join(recipients),