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
Hashes for access_outlook_email-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e88f2c9ebaccc6ed059c6a7d91ce3e00866c132f161a6cc83ec2a879a06684b |
|
MD5 | 2fd29c402199ae888e7d65a2f320d1db |
|
BLAKE2b-256 | 7aa207df1a17d30f4860ec16d26fa6d15d7d654034e8f3c129cb09de63ea2090 |
Hashes for access_outlook_email-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0cefcb79efd6ccdc1635acafdd0e2f7cd3852e0e41740202e2cf4a7077a16e |
|
MD5 | 50e9d384c5e72c7e4a394ff33002ddfc |
|
BLAKE2b-256 | 7a80d8bbdabb5b13f369f4be35fb73b38fc6b9a3b80e5d73d75d56d78a289eaa |