Skip to content

Exchange Emailer

Send emails via Microsoft Exchange Server with HTML template support

PyPI Python Versions License


Overview

ExMailer is a Python library designed to simplify sending emails through Microsoft Exchange Server with full support for HTML text formatting.

Key Features

  • Microsoft Exchange Integration - Seamless NTLM authentication
  • Bi-directional Language Support - Persian (RTL) and English (LTR) templates
  • Professional HTML Templates - Customizable email templates
  • Attachment Support - Multiple files with automatic MIME detection
  • Flexible Configuration - Environment variables, JSON, or programmatic setup
  • CLI Interface - Command-line tool for quick operations
  • Secure SSL/TLS - Certificate verification and encryption
  • Error Handling - Custom exceptions for debugging

Quick Example

from exmailer import ExchangeEmailer

with ExchangeEmailer() as emailer:
    emailer.send_email(
        subject="Hello There 👋🏻",  # Hello World
        body="<p>Test email</p>",
        recipients=["colleague@company.com"],
    )