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.3.
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a8cd68cb09f92ab7f32cc26e4a0c1455245519d3b07c8722a7d456d147ecbf |
|
MD5 | cef4a49048295d9c1489e3e54715bbd0 |
|
BLAKE2b-256 | 314a7d51065686198686136505b37e406bd3b92ce9e6827f7816fdff7a1f8546 |
Hashes for access_outlook_email-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a07a94413e3dc4dbb5d455d49706e8eb4917b51d02fc3efa8aea5a8f9e0778d2 |
|
MD5 | 3cfd7ed9104eb80d5edc811ac9fe4dd7 |
|
BLAKE2b-256 | 6573c012121c2235a8d1645b9d94d2950b878981ffa05ae63025f22779a770cc |