Skip to main content

Send/Save Emails & Attachments via Outlook

Project description

Access Outlook Email

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 access_outlook_email

Usage create_account

Simply import the modules via the following import statements:

from accessOutlookEmail import create_account
account = create_account('user@provider.com', '***')

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

Usage send

Simply import the modules via the following import statements:

from accessOutlookEmail 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 accessOutlookEmail 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.

Project status

The current released version is 0.1.2.

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

access_outlook_email-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

access_outlook_email-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file access_outlook_email-0.1.2.tar.gz.

File metadata

  • Download URL: access_outlook_email-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for access_outlook_email-0.1.2.tar.gz
Algorithm Hash digest
SHA256 de01ce66c98d867f3ebbef43783c2b51022703586ef5039080f6af7799ba30e3
MD5 50087ebf7c0b55d2947a0f9c04027c95
BLAKE2b-256 bba15b8c838bafad51f2d7bcf80e2fe0c14603ec6e26b0454bf41c8e26fb0aaa

See more details on using hashes here.

File details

Details for the file access_outlook_email-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: access_outlook_email-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for access_outlook_email-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e90e7db529c902b264c6bdef0d63de24717ebe1f897da3ae02787999657e5990
MD5 15f0e2db22da685b38b89fcf339b0286
BLAKE2b-256 37e26c190294a600b7120087ece3a2546290ae5d44a01980a35d4b296ac1a13a

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