Changeset 3119 for trunk


Ignore:
Timestamp:
12/07/10 16:06:46 (9 years ago)
Author:
jukka
Message:

Working on sending emails from exercises.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ExerciseMaterial.py

    r3118 r3119  
    244244        body=[] 
    245245        students_name = to_unicode(REQUEST.get('your_name','')) 
    246         students_email = to_unicode(REQUEST.get('students_email','')) 
    247         teachers_email = to_unicode(REQUEST.get('teachers_email','')) 
     246        students_email = REQUEST.get('students_email','') 
     247        teachers_email = REQUEST.get('teachers_email','') 
    248248        captcha_c=REQUEST.get('recaptcha_challenge_field','') 
    249249        captcha_r=REQUEST.get('recaptcha_response_field','') 
     
    279279            mcc=students_email 
    280280        else: 
    281             mto=teachers_email 
     281            mto=students_email 
    282282            mcc='' 
    283283        # Send 
    284284        try: 
    285             mhost.secureSend(body, mto=mto, mfrom="LeMill <no-reply@lemill.net>", subject=msubject, mcc=mcc) 
     285            mhost.secureSend(body, mto, "LeMill <no-reply@lemill.net>", subject=msubject, mcc=mcc, charset='utf-8') 
    286286            msg = self.translate("text_mail_feedback_message_sent", "The e-mail has been sent.",domain='lemill') 
    287287            return (msg, 'mess') 
Note: See TracChangeset for help on using the changeset viewer.