Skip to main content

This is an experimental library to send email using Microsoft Graph API

Project description

azure_simple_email

Python library to send email trough azure service api

This tool is very simple to use provided you already have an active account with Microsoft Azure Cloud.

To ba able to access Azure Api this library will look for 3 environment variables

AZURE_EMAIL_CLIENT_ID AZURE_EMAIL_CLIENT_SECRET AZURE_EMAIL_AUTHORITY

You can find these values inside your Azure Entra DI services,

Moreover to send an email you need to have a valid Microsoft email account inside the organization

The you call instantiate AzureSendEmail passing the sender's email as paramenter

this is the example that I have tested here of course with different email address.

azure_email = AzureSendMail(user_id='service@example.com') azure_email.add_recipient('marco@test.com') azure_email.add_attachment('../README.md') azure_email.send_email(subject='test message', text='Hi, we are testing this python tool')

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

azure_simple_email-0.2.1.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

azure_simple_email-0.2.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file azure_simple_email-0.2.1.tar.gz.

File metadata

  • Download URL: azure_simple_email-0.2.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for azure_simple_email-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5d88db8d9b15894000a0e85288fcf3e5f21057907991d37946d195e038e691d8
MD5 6bb4a752f6b2cea67bc98e30f41b91fc
BLAKE2b-256 91574297aa00858af24285695d52fb6b9e46f7c42d3e83e33af57d99bbcfc930

See more details on using hashes here.

File details

Details for the file azure_simple_email-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_simple_email-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a1abd800b4ba3a91cc1e02b07d4457cefac1ec262f37a363537bd350e617a93
MD5 4847755c5b779eb393485ae2e3de77aa
BLAKE2b-256 8bab143da0f59a859d2a5fd5f6993d2f4983be2c0b316783148fb2b9015c3622

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