Skip to main content

SimpleEmail

Simple SMTP wrapper for Python with basic HTML and text support based on MIME types.

Quickstart

Install simpleemail

pip install simpleemail

Then use it in a project:

from simpleemail import create_email_message, send_email

To send an email you have to first create an email message to send. Note you can use any combination of plain text or HTML when creating a message.

message = create_email_message('Hello','email@address.com','foo@bar.it','World!','<html><head></head><body><h1>World!</h1></body></html>') send_email(message,'smtp.server.com', False)

You can also provide parameters to be replaced when the message is created.:

params = {'name': 'Rick James'}
message = create_email_message('Hello',
                                'email@address.com',
                                'anyone@foobar.com',
                                '[name]!',
                                '<html><head></head><body><h1>[name]!</h1></body></html>',
                                params)

This will substitute the value of Rick James in for the name.

You can also send a single attachment or multiple attachments by choosing:

message = create_email_message('Hello',
                                'email@address.com',
                                'anyone@foobar.com',
                                'Test body',
                                '<html><head></head><body><h1>Test body</h1></body></html>',
                                [],
                                "file.txt",
                                ['file1.txt','file2.pdf'])

Metadata

Release files for simpleemail 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simpleemail 0.4
File Size Uploaded Provenance Actions
simpleemail-0.4.tar.gz 3.4 kB Without provenance Details for simpleemail-0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simpleemail 0.4
File Interpreter ABI Platform Actions
simpleemail-0.4-py3-none-any.whl Python 3 none any Details for simpleemail-0.4-py3-none-any.whl

Total release size: 7.9 kB

Release files / simpleemail-0.4.tar.gz

Download URL simpleemail-0.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ea29250814ea54c3509a8df46c89eadb4502a42ac75a4d5e88631ab5deef226b
BLAKE2b-256 checksum
How to use checksums
402a999e8d77f33309e9d851d3f77c0336a13d5083c70c830d9a9da9a66710ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.3

Release files / simpleemail-0.4-py3-none-any.whl

Download URL simpleemail-0.4-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a81e5db0bb37daf68f7a0b2ede07773592c2e36438119b21edd5bffe0d2b73a
BLAKE2b-256 checksum
How to use checksums
b7a99a71e34b09c8db13676045846561090edb141f61ef70646b9f740f4061df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.3

Security for simpleemail 0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page