Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sendMail(templatePath = '', subject='', email = '', params = {}):
- mail.send_mail(
- sender = "no-reply@societs.com",
- to = email,
- subject = subject,
- html = unicode(template.render("emailtemplates/"+templatePath+".html",params),'iso-8859-15'),
- body = unicode(template.render("emailtemplates/"+templatePath+".html",params),'iso-8859-15')
- )
Add Comment
Please, Sign In to add comment