Skip to main content

Send Mail

This package makes it much easier to send emails in python.

Installation

Install on Linux/MacOS: python3 -m pip install send_mail

Install on Windows: python -m pip install send_mail

Usage

from send_mail import SendMail

# Create SendMail object
new_mail = SendMail(
	# List (or string if single recipient) of the email addresses of the recipients
	['recipient1@email.com', 'recipient2@email.com'], 
	# Subject of the email
	'Email Subject',
	# Body of the email
	'Email Body', 
	# Email address of the sender
	# Leave this paramter out if using environment variable 'EMAIL_ADDRESS'
	'sender@email.com' 
)

# Add HTML
new_mail.add_html_message('<h1>Hello, World</h1>')

# If using HTML file
# new_mail.add_html_file('/path/to/your/html/file')

# List (or string if attaching single file) of relative or absolute file path(s) to files
new_mail.attach_files(['image.jpg', 'text.txt', 'myPDF.pdf'])

# Print SendMail object to confirm email
print(new_mail)

# Send the email
# Leave this parameter out if using environment variable 'EMAIL_PASSWORD'
new_mail.send('fake_password')

Let me know if you would like more email services other than Gmail

Metadata

Release files for send-mail 0.0.2

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

Source distribution (sdist)

Source distribution for send-mail 0.0.2
File Size Uploaded Provenance Actions
send_mail-0.0.2.tar.gz 3.3 kB Without provenance Details for send_mail-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for send-mail 0.0.2
File Interpreter ABI Platform Actions
send_mail-0.0.2-py3-none-any.whl Python 3 none any Details for send_mail-0.0.2-py3-none-any.whl

Total release size: 7.4 kB

Release files / send_mail-0.0.2.tar.gz

Download URL send_mail-0.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
342a2eb405554c1b74862941aef6e1d96eab6a47cac0969bf212982a5af64c49
BLAKE2b-256 checksum
How to use checksums
8f5ba1b3906247bde3937694e7f0181d16b267af1d8ce5d1e102b26e2add5dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release files / send_mail-0.0.2-py3-none-any.whl

Download URL send_mail-0.0.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d647f33467495d5bcfcb2facbbaec58629207a53b0ca9cdd2b48b54b01a02e93
BLAKE2b-256 checksum
How to use checksums
55e24c4c23e637f03c60f6815c077b2fe640b0771cb0a9ca45f79eccb4b47187
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Security for send-mail 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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