class_ctrl.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:mentii 作者: mentii 项目源码 文件源码
def sendClassRemovalEmail(dynamoDBInstance, mailer, jsonData):
  '''
  Create a message to send it from our email to
  the passed in email. The message should notify the user they were removed from a class
  '''
  email = jsonData.get('email')
  classCode = jsonData.get('classCode')
  cl = getClassByCode(classCode, dynamoDBInstance)
  classTitle = cl['title']
  message = render_template('removedEmail.html', classTitle=classTitle)

  #Build Message
  msg = Message('You have been removed from a class', recipients=[email],
        extra_headers={'Content-Transfer-Encoding': 'quoted-printable'}, html=message)

  mailer.send(msg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号