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.5.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file access_outlook_email-0.1.6.tar.gz.
File metadata
- Download URL: access_outlook_email-0.1.6.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad4dc96b1d2ac4e6d3a01a855431499a37c24fc1cef6574621a71c4852da95bb
|
|
| MD5 |
4be68cf667fa0e6eae8c0490bf4d99ac
|
|
| BLAKE2b-256 |
e3b23f224a0e40a3cd2cd08fd882fe1030eb4b6681d9891bcaffcd7cb8b6b68b
|
File details
Details for the file access_outlook_email-0.1.6-py3-none-any.whl.
File metadata
- Download URL: access_outlook_email-0.1.6-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
000f866b7fb6b611d275553831aab12b1f7cfc969b0a0ae3a2978620ba9046be
|
|
| MD5 |
6c97417d09aa5e5e962ffc1d9f9a03f5
|
|
| BLAKE2b-256 |
df26cba1f1953fe6cf0a42ccce83f0150f17b3075cec4e622b74e24d9fb49bc4
|