mailcomposer aims to provide a simple, cross-platform interface for composing emails through an external application like Microsoft Outlook. Some reasons you might use it are:
- You're behind a corporate firewall, and are only able to send email using Outlook.
- You don't have an SMTP server, or don't want the hassle of using
smtplib. - You just prefer your desktop email client.
Here's how easy it is to use:
# This automatically selects an appropriate email application
from mailcomposer import MailComposer
mc = MailComposer()
# Set some message headers
mc.to = "nobody@example.com"
mc.subject = "Testing mailcomposer"
# Set the message body
mc.body = "This is a demonstration of the mailcomposer package."
# Attach this README file
mc.attach_file("README.md")
# Display the message in your email application
mc.display()
The mailcomposer module can also be called as a script from the command line. When used this way, it provides an interface similar to the Unix mail utility. For more information, try python -m mailcomposer --help.
Features
Notable features include:
- Straightforward API
- Cross-platform
- Runs on both Python 2 and 3
- Uses your desktop email client; no SMTP server required
- To, CC, and BCC fields accept single recipients or Python lists
- Messages can be composed in either plain-text or HTML format
- Attachments are easy -- just pass the filename
Supported Email Applications
Supported email applications currently include:
- Microsoft Outlook (Windows only; requires pywin32)
- Mozilla Thunderbird
On Unix systems, mailcomposer can also access other email applications via the xdg-email utility from xdg-utils. However, some features like setting the body format are not supported using xdg-email.
Metadata
Release files for mailcomposer 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailcomposer-0.2.4.tar.gz | 8.3 kB | Without provenance | Details for mailcomposer-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailcomposer-0.2.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for mailcomposer-0.2.4-py2.py3-none-any.whl |
Total release size: 20.4 kB
Release files / mailcomposer-0.2.4.tar.gz
| Download URL | mailcomposer-0.2.4.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c657515f8ae03ee49cf014576ce9f249bf05e9c1f3f87ef15a21cd624e36068
|
|
BLAKE2b-256 checksum How to use checksums |
db2ec372398b2bc5d3980a934e560320397cf40d35cda28704026c008145de18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Release files / mailcomposer-0.2.4-py2.py3-none-any.whl
| Download URL | mailcomposer-0.2.4-py2.py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6de6f09655d639e8b7bb7017b7bd3c1d39183301beb33ddf79934d0581262d6d
|
|
BLAKE2b-256 checksum How to use checksums |
30c3ed47156b79de132de04b3cdd45430d86b964695d31248d251ff4c8e21841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Security for mailcomposer 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.