Metadata-Version: 2.1
Name: cabysis-mail-man
Version: 1.0.3
Summary: Cabysis email sender service
Author: Cabysis
Author-email: dev@cabysis.com
License: MIT
Description-Content-Type: text/markdown
Requires-Dist: requests==2.32.3
Requires-Dist: setuptools==73.0.1
Requires-Dist: twine==5.1.1
Requires-Dist: flake8==7.1.1
Requires-Dist: pytest==8.3.2

# Email Sender Package

MailManSender package is a Python library for sending emails easily using SMTP created by CabySis.


## Installation

You can install the lastest version as:

```bash
    pip install cabysis-mail-man
```
## Usage

You can use this library after installation as this example:

```python
from cabysis_mail_man.file_meta import FileMeta
from cabysis_mail_man import sender
from cabysis_mail_man.providers import Providers # Enum class with all available providers

    files_meta = [
        FileMeta(file_path="path/file.txt"),    # Create file meta by file stored on path
        FileMeta(                               # Create file meta by buffer and file name
            buffer=b"file buffer example",
            file_name="file.txt",
        ),
    ]

    subject = "This is a subject"               # Define email subject
    message = "This is email body message."     # Define email body
    to_emails = [                               # Define the email receivers list
        "your_email@exmple.com"
    ]
    provider = Providers.MYPROVIDER            # Specify the provider
    api_key = "your_api_key"                    # Specify the api key 
    sender.send_mail(subject, message, to_emails, provider, api_key, files_meta)  # Send email with the provided data
```

