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()
评论列表
文章目录