Skip to main content

A Python library for Email Automation. FluxMail allows you to create and send emails using either SMTP or Outlook. It supports both Windows and Linux platforms (with Outlook available only on Windows)

Project description


📋 Table of Contents


📣 Overview

A Python library for email automation supporting SMTP and Outlook protocols. Send emails via CLI or Python API. Outlook support is Windows-only (requires pywin32).


📌 Quick Start

Installation

pip install fluxmail
pip install --upgrade fluxmail   # upgrade

CLI

export FLUXMAIL_USERNAME=me@gmail.com
export FLUXMAIL_PASSWORD=secret

fluxmail --type smtp --host smtp.gmail.com --port 587 --tls \
  --subject "Hello" \
  --recipients friend@example.com \
  --body "Hi from the CLI!"

Python API

from fluxmail import FluxMail

FluxMail(
    object_type="smtp",
    host="smtp.gmail.com",
    port=587,
    use_tls=True,
    username="me@gmail.com",
    password="secret",
).create(
    subject="Hello",
    recipients=["friend@example.com"],
    body="Hi there!",
).send()

Full documentation: 👉 vertex-ai-automations.github.io/fluxmail


⚙️ Configuration

Pass credentials via environment variables so they never appear in shell history:

export FLUXMAIL_USERNAME=me@gmail.com
export FLUXMAIL_PASSWORD=secret

Works with any SMTP provider — Gmail, SendGrid, Amazon SES, Mailgun, Office 365, or a self-hosted relay.

See Configuration for provider-specific settings.



CI Pipeline

Every push to main and every pull request runs automatically via shared-workflows:

Job What it checks
Test pytest on Python 3.9–3.12 x Ubuntu + Windows
Lint ruff check + ruff format --check
Type Check mypy src/
Audit pip-audit — all dependencies scanned for known CVEs
Coverage pytest-cov — report posted to the Actions job summary

👪 Contributing

All contributions are welcome! Fork the repo, make your changes, and open a pull request. You can also open an issue with the label enhancement.

Don't forget to ⭐ star the project!

🔶 View all contributors


📃 Full Docs  ·  🔧 Report a Bug  ·  ⛪ Vertex AI Automations

(back to top)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluxmail-0.3.1.tar.gz (312.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluxmail-0.3.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file fluxmail-0.3.1.tar.gz.

File metadata

  • Download URL: fluxmail-0.3.1.tar.gz
  • Upload date:
  • Size: 312.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fluxmail-0.3.1.tar.gz
Algorithm Hash digest
SHA256 18ae1988c48ded6dadbbebb7ce09b79bf1019a27c052866d31c5025a73338c82
MD5 4f3b6eaa72f2191d8e9b2ca57daf6573
BLAKE2b-256 bf35ab497f74eadee1ea3df0d4df9dde9c4efa434bd6b400173681a702d99915

See more details on using hashes here.

File details

Details for the file fluxmail-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: fluxmail-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fluxmail-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 816ad2c6b5b8256143e83430ede0c9c96a0555e88f7c9cf6aed2e9750f10b6a2
MD5 2444e20c25c10274384bf1b40fc7e8b5
BLAKE2b-256 f4bce8aeddf8af0dd079f1a6f54c68b02259ecfa0690cf07a64c2e41eaddaa42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page