Guest User

Untitled

a guest
Dec 7th, 2017
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  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. )
Add Comment
Please, Sign In to add comment