python email mime使用
2015-08-26 16:37
423 查看
multipart/mixed, multipart/related和multipart/alternative使用规则:
mixed
alternative
text
related
html
inline image
inline image
attachment
attachment
multipart对应的mixed/related/alternative关系如上。当有添加附件时使用mixed,当只有text和html同时存在时使用alternative,在html嵌入资源时使用related。
可以根据以上层级关系选择multipart需要的类型。
mixed
alternative
text
related
html
inline image
inline image
attachment
attachment
multipart对应的mixed/related/alternative关系如上。当有添加附件时使用mixed,当只有text和html同时存在时使用alternative,在html嵌入资源时使用related。
可以根据以上层级关系选择multipart需要的类型。
相关文章推荐
- python 闭包 装饰器
- python super用法
- python查询mx ns 记录
- Python GUI 以及绘图参考
- python解析ini、conf、cfg文件
- 轻松python文本专题-字符串逐字符反转以及逐单词反转
- 轻松python文本专题-字符串逐字符反转以及逐单词反转
- Isolation forest的python代码实现
- [python] 向指定套接字发送信息
- Python单元测试框架
- Python中函数参数传递问题
- [python] CVE信息大集合
- python列出文件夹下的所有文件
- python decorator 用法
- python中的时间和日期
- 详细记录python的range()函数用法
- Python ->> 第一个Python程序
- python idle 清屏问题的解决
- python __init__和__new__之间的区别
- python wraps装饰器