-
Notifications
You must be signed in to change notification settings - Fork 2
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
发现有个地方有问题 #1
Comments
@361way :D 这里用逗号还是分号,两种情况我都测试过,似乎是没有什么影响的,不知有没有准确的说法指出应该使用分号呢:D |
这个倒没有,因为传多个receiver接收者的时候,发现只有第一个用户可以收到,感觉很奇怪 。receiver传的类型是list,看了下代码,没发现有问题。在测试不基于flask,直接按如下代码运行程序,多个接收者完全没问题。感觉很是奇怪,不知道你测试的时候有没这个问题(测试环境centos6.7 python2.6 flask通过easy_install安装的)
|
我测试了下,用smtp抄送(cc) 现在似乎无效了,被抄送的邮箱都收不到邮件。但是若果作为多个接收者,即receiver是一个list的话,倒是没有问题 |
postmail.py文件中line 113--115行的部分,是不是写的有问题?
mail['To'] = ", ".join(receiver)
mail['Cc'] = ", ".join(cc)
mail['Bcc'] = ", ".join(bcc)
正确的写法应该是(逗号换成分号):
mail['To'] = "; ".join(receiver)
mail['Cc'] = "; ".join(cc)
mail['Bcc'] = "; ".join(bcc)
The text was updated successfully, but these errors were encountered: