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.7.
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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5596ab10197f3268de2a480255a56446e7602678e46416756396dd7d5ca680b0 |
|
MD5 | fc8143e8d17b075013a4f2cc63a08f99 |
|
BLAKE2b-256 | b0b91a27e2d51f33e839764dbef56f9c2a4af32999bf1bbe764a4fe2b96dd8f4 |
Hashes for access_outlook_email-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab23bba4d8278bbac58ec77694ed3a5c89c4718054020b2594152f992038eb7b |
|
MD5 | cfc72cd83fb671dbf2eaf8707e5e9106 |
|
BLAKE2b-256 | 5dd19312d1d47dbe0dd4bafd29dd36499fb640ac9ad000b5ed9fef8a001a3dd0 |