notification.py 文件源码

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

项目:chaos-monitor 作者: mikefeneley 项目源码 文件源码
def __init__(self, email_server="127.0.0.1", email_port=587,
                 email_username="", email_pwd=""):
        """
        Set up connection information and authentication tokens to allow user to
        access smtp server.

        :param email_server: IP Address of SMTP server for sending mail.
        :type email_server: string
        :param email_port: Port to use to send email
        :type email_port: int
        :param email_username: Authentication username for SMTP server.
        :type email_username: string
        :param email_pwd: Authentication username for SMTP server.
        :type email_pwd: string
        """
        self.email_port = email_port
        self.email_server = email_server
        self.gmail_user = email_username
        self.gmail_pwd = email_pwd
        self.logger = Logger()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号