mailer.py 文件源码

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

项目:vaultier 作者: Movile 项目源码 文件源码
def _send(self, **kwargs):
        """
        Actually send email in background

        :return:
        """
        context = self._build_context(**kwargs)
        plain, html = self._render(context)
        msg = EmailMultiAlternatives(
            from_email=self.from_email,
            to=self.to,
            body=plain,
            subject=self.format_subject()
        )

        msg.attach_alternative(html, 'text/html')
        msg.send()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号