我正在使用server.mail()
函数检查邮件中继是否可用。我收到服务器的响应,这是出乎意料的。
send: 'mail FROM:<bhanukrsingh@outlook.com> b h a n u k r s i n g h @ o u t l o o k . c o m\r\n'
reply: b'501 5.5.4 Invalid arguments [CO1NAM05FT018.eop-nam05.prod.protection.outlook.com]\r\n'
为什么我会收到这样的电子邮件ID?它应该是这样的send: 'mail FROM:<bhanukrsingh@outlook.com> bhanukrsingh@outlook.com\r\n'
我用print(repr(email))
来检查我是否读错了文件,但事实并非如此
我哪里做错了
这是我的完整代码的链接:https://github.com/Rwarlock/mxrecordchecker/blob/master/mxrecord.py
我找到了解决办法
基本上我使用的是使用这部分代码来发送邮件
server.mail('bhanukrsingh@outlook.com',email)
但现在我用的是:
这将根据需要为我提供服务器响应:
相关问题 更多 >
编程相关推荐