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.0.9.
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
Hashes for access_outlook_email-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12bcf1fe1738d72e0d7acaed2819ff2e23d366fc9ce039dd4294cb933ed8a12e |
|
MD5 | ecdd8f00f49bddc0d210dac7c5f31e0a |
|
BLAKE2b-256 | ff8c1e29349e55f244ec9050fa134ed1e8db4b287a7de04502f7d16b61f8d85c |
Hashes for access_outlook_email-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7cac6445bf78521636a86c8c9d1672383564faa11bad49bedaa3e923da51ce3 |
|
MD5 | 6048e1ce5af9da0cfda55be8f155e8c1 |
|
BLAKE2b-256 | 0be63172ac16db795dba7ee0a78fe5590db56fbf7497c26772eef07e840a28d3 |