Metadata-Version: 2.4
Name: ZapMail
Version: 1.0.2
Summary: A simple, intuitive Gmail SMTP email library
Home-page: https://github.com/Dalfin-byte/ZapMail
Author: Dalfin-Byte
Author-email: gd.familie.18@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# 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

```bash
pip install ZapMail
```


```python
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.")

```
