Skip to main content

No description.

Project description

maida

目前:

  1. 用于发送邮件

安装

可以直接 pip 安装

pip install maida

mail

EmailSender

基于 smtplib 的发送邮件脚本

  1. 可以发送文本
  2. 可以发送图片
  3. 可以发送附件(图片、文件等),附件文件名可以包含中文
  4. 可以群发邮件
  5. 可以设置邮件优先级(如标红)

demo

from maida import EmailSender

email_sender = EmailSender(email_host='smtp.qq.com', email_port=465, from_addr='xxx@qq.com', email_pass='xxx')
content = '这是lzc发送过来的邮件。请注意查收!'
email_sender.attach_text(text=content)
email_sender.attach_file(r'C:\xxx\xx.jpg')
email_sender.attach_file(r'C:\xxx\xx.txt')
email_sender.send(to_addrs=['xxx@qq.com'], subject='测-试')

版本历程

详见 history.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for maida, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size maida-0.1.9.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View
Filename, size maida-0.1.9-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page