semvec/pypi-packages huggingface dataset:
mail-senders 1.0.0
Mail sender classes for different Apps/Platforms
Requires Python: >=3.10
Keywords: email, mail, mailjet, outlook, sender, smtp

# mail-senders

|     |     |
| --- | --- |
| Version | [![PyPI - Version](https://img.shields.io/pypi/v/mail-senders.svg)](https://pypi.org/project/mail-senders) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mail-senders.svg)](https://pypi.org/project/mail-senders) |
| Project | ![GitHub License](https://img.shields.io/github/license/m-birke/mail-senders) ![PyPI - Status](https://img.shields.io/pypi/status/mail-senders) ![PyPI - Format](https://img.shields.io/pypi/format/mail-senders) ![PyPI - Implementation](https://img.shields.io/pypi/implementation/mail-senders) |
| CI | ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/m-birke/mail-senders/static-code-check.yml) |
| Code | ![PyPI - Types](https://img.shields.io/pypi/types/mail-senders) [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) [![Linting: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) |

-----

Mail sender classes for different Apps/Platforms

## Table of Contents

- [Usage](#usage)
- [License](#license)

## Usage

For usage of the outlook sender, install with extra: `mail-senders[win]`

```python
from mail_senders.mailjet import MailjetSender
from mail_senders.utils import get_html_body

html_body = get_html_body(...)

mjs = MailjetSender(mj_api_key, mj_api_secret, sender_addr, sender_name)
mjs.send_mail(recipient_addr, subject, html_body, attachment_pth, attachment_name)
```

## License

`mail-senders` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.