프로젝트
GitHub에서 보기
skulltech/drymail
소개
Makes sending emails easy and DRY — For Python 3.
생산성 및 자동화What you can do
- Supports creating email with HTML content, plaintext content, or both!
- Supports mentioning contacts in the “John Doe" <[email protected]> format.
- Support standard headers like CC, BCC, Reply-To and Authors.
- Supports injecting custom headers.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaldrymail
Makes sending emails easy and DRY — For Python 3.
Drymail is a minimalist wrapper over Python’s existing smtplib and email libraries, designed to be friendly but unrestrictive. Here’s how you might send a simple email with an attachment using drymail.
from drymail import SMTPMailer, Message
client = SMTPMailer(host='smtp.email.com', user='johndoe', password='password', tls=True)
message = Message(subject='Congrats on the new job!', sender=('John Doe', '[email protected]'),
receivers=[('Jane Doe', '[email protected]'), '[email protected]'], text='When is the party? ;)')
message.attach(filename='/path/to/congrats.pdf', mimetype='application/pdf')
client.send(message)
Features
- Supports creating email with HTML content, plaintext content, or both!
- Supports mentioning contacts in the
“John Doe" <[email protected]>format. - Support standard headers like
CC,BCC,Reply-ToandAuthors. - Supports injecting custom headers.
- Supports adding attachments.
- And most importantly — the library being minimalist, it doesn’t restrict you in any way like some of the most fancier email frameworks do.
Installation
Install drymail by running —
$ pip3 install drymail
Documentation
Documentation is available at https://drymail.readthedocs.io/
Agenda
- Test suite.
- Restructure the
Messageclass to handle dynamicprepare.
Contribute
All kinds of contribution are welcome.
- Issue Tracker — https://github.com/drymail/issues
- Source Code — https://github.com/drymail
License
This project is licensed under the MIT license.
관련 프로젝트 살펴보기
불러오는 중…