Skip to main content

Exchange Web Server

This project contains the basic files to send and save an email/attachment through the module exchangelib.

Installation

Note that the module requires Python 3.6 or higher.

To install the module, run a pip command like the following:

pip install exchange-web-server

Setting .env Variables

To work properly, this module needs your companies:

  • tenant_id
  • client_id
  • client_secret

Usage create_account

Simply import the modules via the following import statements:

from exchange-web-server import create_account
account = create_account('user@provider.com')

The create_account function requires your Outlook-Exchange email-address.

Usage send

Simply import the modules via the following import statements:

from exchange-web-server import send_email

The send_email function requires your account, subject, body, recipients and optional attachments.

To send an email, the following code provides the core functionality:

send_email(account, 'TestSubject', 'TestBody', ['recepient@provider.com'], ['path/to/your/attachments'])

Usage save

Simply import the modules via the following import statements:

from exchange-web-server import save_attachment

The save_attachment function requires your Outlook Exchange Folder, which needs to be located in your inbox. Also it needs a path where to save and an exchangelib account.

To save an attachment, the following code provides the core functionality:

save_attachment(account, 'TestSubject', 'TestBody', ['recepient@provider.com'])

License

This project is licensed by a MIT License.

Metadata

Release files for exchange-web-server 1.1.0

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

Source distribution (sdist)

Source distribution for exchange-web-server 1.1.0
File Size Uploaded Provenance Actions
exchange-web-server-1.1.0.tar.gz 12.3 kB Without provenance Details for exchange-web-server-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exchange-web-server 1.1.0
File Interpreter ABI Platform Actions
exchange_web_server-1.1.0-py3-none-any.whl Python 3 none any Details for exchange_web_server-1.1.0-py3-none-any.whl

Total release size: 31.8 kB

Release files / exchange-web-server-1.1.0.tar.gz

Download URL exchange-web-server-1.1.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d83219af7165cd28b6df05008f66c0324886ac938f466b6bac229d815945b366
BLAKE2b-256 checksum
How to use checksums
32dc5ff7c3ef8d636d699b0a6503d57e3001d160cf2870a2b074116e33f34724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Release files / exchange_web_server-1.1.0-py3-none-any.whl

Download URL exchange_web_server-1.1.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9a433419d075ee62d2e2afaf22b25e681b3207eb41977bac89ec1b4d535cdc4
BLAKE2b-256 checksum
How to use checksums
e1723c83e3ae82cbbcc9ba7354443923b2042070ada857b42f811d412f4df389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Security for exchange-web-server 1.1.0

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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

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