We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
原方案中添加图片附件时虽发送成功但图片格式会出现被该修改为bin格式的情况, 解决方案:将#6中的msg.attach(message_image)改为 message_image.add_header('Content-Disposition', 'attachment', filename='filename.png') #filename为“图片名字.图片格式” msg.attach(message_image) 问题即可解决。
The text was updated successfully, but these errors were encountered:
https://blog.csdn.net/hxchuadian/article/details/125773738
Sorry, something went wrong.
No branches or pull requests
原方案中添加图片附件时虽发送成功但图片格式会出现被该修改为bin格式的情况,
解决方案:将#6中的msg.attach(message_image)改为
message_image.add_header('Content-Disposition', 'attachment', filename='filename.png') #filename为“图片名字.图片格式”
msg.attach(message_image)
问题即可解决。
The text was updated successfully, but these errors were encountered: