mixins.py 文件源码

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

项目:PublicAPI 作者: InternetSemLimites 项目源码 文件源码
def send_mail(self):

        subject = self.email_subject
        from_ = self.email_from
        to = self.get_email_to()
        template_name = self.get_email_template_name()
        context = self.get_email_context_data()

        body = render_to_string(template_name, context)
        return mail.send_mail(subject, body, from_, to)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号