Skip to main content

ZapMail

ZapMail is a simple Python library to send emails via Gmail's SMTP server. It supports plain text, HTML content, attachments, and CC/BCC fields.

Installation

pip install ZapMail
from ZapMail.emailer import Emailer

emailer = Emailer(
    sender_email="your_email@gmail.com",
    password="your_app_password"
)

success = emailer.send_email(
    recipient=["recipient1@example.com", "recipient2@example.com"],
    subject="ZapMail Feature Demo",
    body_text="This is a plain text body.",
    body_html="""
        <h1>ZapMail Demo</h1>
        <p>This email demonstrates <b>ZapMail</b> features.</p>
        <img src="cid:demoimg">
    """,
    attachments=["/path/to/attachment.pdf"],
    cc="ccperson@example.com",
    bcc=["bcc1@example.com", "bcc2@example.com"],
    reply_to="replyto@example.com",
    inline_images={"demoimg": "/path/to/image.png"},
    custom_headers={"X-Custom-Header": "ZapMailDemo"}
)

if success:
    print("Email sent successfully!")
else:
    print("Failed to send email.")

Metadata

Release files for ZapMail 1.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 ZapMail 1.0.2
File Size Uploaded Provenance
zapmail-1.0.2.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ZapMail 1.0.2
File Interpreter ABI Platform
zapmail-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / zapmail-1.0.2.tar.gz

Download URL zapmail-1.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7d2f280708cd1d18dfa20a08802f14f8f7581af1f838fb3520b29de2d0e42d49
BLAKE2b-256 checksum
How to use checksums
7c43ca7db781e15edcf1a9a6c8b346ca1696cc2c089ef6bf2b7f663e0da9377b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / zapmail-1.0.2-py3-none-any.whl

Download URL zapmail-1.0.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8636ba67210c9a038fc00759d4e77a6293db809600a7ef8aceb760b32a18b13
BLAKE2b-256 checksum
How to use checksums
382ec6a5398b37d18906c6060bb9ba25e21f0baa0d9f2e7b99d2a7e5f91e6482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for ZapMail 1.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

1.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