Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

乱码及包兼容的问题 #3

Open
Jalright opened this issue Feb 2, 2018 · 0 comments
Open

乱码及包兼容的问题 #3

Jalright opened this issue Feb 2, 2018 · 0 comments

Comments

@Jalright
Copy link

Jalright commented Feb 2, 2018

今天安装运行发现那python_namp没有PortScanner,换成python-nmap就可以了。

还有发现中文发送到邮箱会乱码,应该是阿里云的邮箱没有自动识别

  else:
            part = MIMEText("端口服务详情请参照附件信息。\n注:端口服务信息并未改变,且不存在弱口令信息")
            part.add_header("Content-Type",'text/plain; charset="utf-8"')
            msg.attach(part)

在MIMEText里面添加头信息,指定字符集是utf-8就可以了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant