Skip to main content

This is an esperimental 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.1.3.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

azure_simple_email-0.1.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: azure_simple_email-0.1.3.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for azure_simple_email-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f0d6126799feec3855c022f43e8a244a667818980c8c825a8abfb3313b5205e8
MD5 0b9a78690a36f8e66be06ff1497da9bd
BLAKE2b-256 47cfba0921a37753ad4d9ebfdfac14dddfb03e580d6e653c4f1258d82c665224

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for azure_simple_email-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a2f89a902f3ecd93a2726ef2a424346d468739ecf8882551e5a017ace4bd527
MD5 285ef8ceab7d97734a746f69ab938a67
BLAKE2b-256 8fa2a955234554b1d7bc6c69cb7c692abee6be70418056dca41e8cdbd2052946

See more details on using hashes here.

Supported by

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