- subject = "=?utf-8?q?%s?=" % encodestring(subject)
- body = self.password_reset_mail_template(fullName=member.getMemberFullName(nameBefore=0),
- siteName=ptool.getProperty('title'),
- resetPasswordUrl='%s/password_reset_form/%s' % (utool(), uuid)
- )
+ subject = encodeMailHeader(subject)
+ options = {'fullName' : member.getMemberFullName(nameBefore=0),
+ 'siteName' : ptool.getProperty('title'),
+ 'resetPasswordUrl' : '%s/password_reset_form/%s' % (utool(), uuid)}
+ body = self.password_reset_mail(options)