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.0.
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
File details
Details for the file access_outlook_email-0.1.0.tar.gz
.
File metadata
- Download URL: access_outlook_email-0.1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a16ddd85dc8783033401f933a183e29ac46511db7fbfb5f93252d28957c6063 |
|
MD5 | d0cfdb58b06dc523c76a8fe9c5479f0f |
|
BLAKE2b-256 | 2c99c00329786f2ff7fb45a3c428923c81f8ffdd4db12619b60a81a264107910 |
File details
Details for the file access_outlook_email-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: access_outlook_email-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a42e6f2d5699a94ebd3ae9286197f59598c68fb016ebfbefa0db2bb948b15899 |
|
MD5 | 7af286075a73c2228f6dd05b8c88f5ea |
|
BLAKE2b-256 | 0f0ac76a55840938da73ced338e6027aeb45c549fee9b287cc91e69d7931e48d |