daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def sendMail(templatePath = '', subject='', email = '', params = {}):
  2.     mail.send_mail(
  3.         sender = "no-reply@societs.com",
  4.         to = email,
  5.         subject = subject,
  6.         html = unicode(template.render("emailtemplates/"+templatePath+".html",params),'iso-8859-15'),
  7.         body = unicode(template.render("emailtemplates/"+templatePath+".html",params),'iso-8859-15')
  8.    )
RAW Paste Data
Top