Skip to main content

AzMailer

Introduction

AzMailer is a Python class designed to facilitate sending emails using Azure Communication Services.

Inspired by the Azure Communication Services documentation here, AzMailer simplifies the process of sending emails by providing an easy-to-use interface for constructing and sending email messages.

Installation

To install azmailer, simply use pip:

pip install azmailer

Usage Example

To use the AzMailer class, follow these steps:

  1. Initialize the AzMailer object with the Azure Communication Service connection string and sender's email address:

    mailer = AzMailer(AZURE_CONNECTION_STRING, SENDER_EMAIL_ADDRESS)
    
  2. Construct an email message using the construct_message() method:

    email_message = mailer.construct_message(
        subject="Your Email Subject",
        content="Your Email Content",
        to_addresses=["recipient1@example.com", "recipient2@example.com"],
        attachments=["/path/to/file1", "/path/to/file2"]
    )
    
  3. Send the email message using the send_email() method:

    mailer.send_email(email_message)
    

Documentation

The Sphinx-generated documentation for azmailer can be found here.

Contribution

Feel free to contribute by submitting issues here.

Metadata

Release files for azmailer 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for azmailer 1.0.1
File Interpreter ABI Platform Actions
azmailer-1.0.1-py3-none-any.whl Python 3 none any Details for azmailer-1.0.1-py3-none-any.whl

Release files / azmailer-1.0.1-py3-none-any.whl

Download URL azmailer-1.0.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e24bf33f6ef7e4b7f91bf3c3c7df084a1c9a56540bcd3a0697c24efc28edcfff
BLAKE2b-256 checksum
How to use checksums
af9f9824ac0b387765225378f02a030977fc783821421cc31a1061667b6611a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for azmailer 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page