# sendMailLib **Repository Path**: GeekDot/sendMailLib ## Basic Information - **Project Name**: sendMailLib - **Description**: 邮件发送处理库 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-07-16 - **Last Updated**: 2021-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
2019-09-11
### 一、概述 `emailSendLib` 是一个邮件发送库,依赖 `smtplib`、`email` 库 下面是对 `emailSendLib` 的详解,如想快速使用,请移步 `demo.py` 模块,里面有 `emailSendLib` 的使用 `demo` ### 二、安装 `emailSendLib` 是以源码的方式呈现,使用的时候直接导入即可 from emailSendLib import es ### 三、使用 `emailSendLib` 所有的功能都是 `es` 的方法,`emailSendLib` 包括 `4` 类功能,各功能之间互斥,暂时不支持同时 `4` 种格式发送 1. 发送文本格式 2. 发送 `html` 格式 3. 发送带有 `[附件]` 的格式 4. 发送带有 `[图片]` 的格式 #### 1. 发送文本格式 发送文本,`send_type` 参数需要指定为 `plain`,因为 `plain` 为默认参数所以可以忽略 es.send('测试邮件(标题)', '测试邮件(内容) - 文本') #### 2. 发送 `html` 格式 发送 `html`,`send_type` 参数需要指定为 `html` es.send('测试邮件(标题)', '