easymail-0.3.0
توضیحات
abstraction layer on top of the email package to make sending emails a little bit easier
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | easymail-0.3.0 |
| نام | easymail |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mathias Fussenegger |
| ایمیل نویسنده | pip@zignar.net |
| آدرس صفحه اصلی | https://github.com/mfussenegger/easymail |
| آدرس اینترنتی | https://pypi.org/project/easymail/ |
| مجوز | MIT |
easymail
========
[](https://travis-ci.org/mfussenegger/easymail)
The email package in pythons standard library is pretty low level.
Easymail aims to add an abstraction layer on top that sets some (hopefully) sane
defaults.
These defaults include:
* using utf-8 encoding by default.
* important headers (like Date)
A simple example:
from easymail import Email
from smtplib import SMTP
e = Email('My Name <mymail@somedomain.com>', 'recipient@otherdomain.org')
e.subject = 'hello world'
e.body = 'with some non-äscii charöcters'
smtp = SMTP('mymailserver.com')
smtp.sendmail(*e.args)
Slightly more advanced:
from easymail import Email, Attachment
from smtplib import SMTP
e = Email('My Name <mymail@somedomain.com>', 'recipient@otherdomain.org')
e.subject = 'hello world'
e.body = 'with some non-äscii charöcters'
e.attachments.append(Attachment('./path/to/picture.png'))
e.attachments.append(Attachment('./path/to/document.pdf'))
smtp = SMTP('mymailserver.com')
smtp.sendmail(*e.args)
Dependencies
============
Pure Python 3.5+
License
=======
Easymail is licensed under the MIT license.
نحوه نصب
نصب پکیج whl easymail-0.3.0:
pip install easymail-0.3.0.whl
نصب پکیج tar.gz easymail-0.3.0:
pip install easymail-0.3.0.tar.gz