Computer Science - PyEmail
PyEmail is a fast, powerful, and easy-to-use open-source Email tool providing a powerfully, user-friendly, and programmatically mail user agent. PyEmail is in a single file with no dependencies other than the Python Standard Library.
Features
- The defined Email class allows users to set HTML/plain text and reuse the information;
- The defined Server class can automatically manage the connection and send an email.
Installation from sources
The source code repository is accessible on GitHub.
$ python -m pip install .
$ python setup.py install
Example
from PyEmail import Email, Server
email = Email(subject="My email title.", text="Hello!")
with Server("user@email.com", "password", "domain.org") as server:
server.send(email, to=["guest@email.com", "visitor@email.com"])
License
This project is licensed under the MIT License - see the LICENSE file for details.