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.1.6.tar.gz (15.5 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.1.6-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for azure_simple_email-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7b49805f1deb3ba0214ea6b90107f85725d923b329458ae2dc64f1f0438b2636
MD5 70cddaace6f03f22baf2249ead84d9b2
BLAKE2b-256 de9767759ff10fca0415d3e3cbfe111fd1073ecefe826060637b576d32d9f529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for azure_simple_email-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b9622cb998e2a8db60786de0f7654ec9f0a00eb86a3ec44e33894ea1ff204729
MD5 06acdd711c036a559762eab4d3822f19
BLAKE2b-256 067d64619bb69efa34d44787d0e5d5581c89eef30967a76ace7cef10c086376b

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