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.4.
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b302183f7594d8439ae09618bbb2d35368d8db1560463553616f73c92419ec7d |
|
MD5 | fdf48beeaee29d0799b69796126b9a5c |
|
BLAKE2b-256 | f2acdb3245aa7fdd54f49f15743263a404f9c3e9b429e24187152cab6b8cb11a |
Hashes for access_outlook_email-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6be304bd29b7078cbfa608ef6e9fd1a2091743e5d90f93d73045bf8614611e8 |
|
MD5 | 46296151871bcefe68388109f53e50b4 |
|
BLAKE2b-256 | 8a50df0c0b9b9f1356cd9a9309e43cec125ccf47df9c0546e4a3137270f259b1 |