email python library
Project description
maildesk
Python Library to read email from any email service, just dowload to yout python script folder. This library using Imaplib python to read email with IMAP protocol.
Usage
Examples
To get latest Unread Message in inbox:
import emaildesk
mail = emaildesk.Client()
mail.login('emailaccount@domain.com','yourpassword')
mail.inbox()
print mail.unread()
To get latest Unread Message in Junk:
import emaildesk
mail = emaildesk.Client()
mail.login('emailaccount@domain.com','yourpassword')
mail.junk()
print mail.unread()
Use mail.select(folder)
to switch to folders other than inbox,
junk`.
Retrive email element:
print mail.mail_body()
print mail.mail_subject()
print mail.mail_from()
print mail.mail_to()
To send Message:
import emaildesk
mail = emaildesk.Client()
mail.login('emailaccount@domain.com','yourpassword')
mail.send_email('recipient@email.com','subject','message body')
To check Credentials:
import emaildesk
mail = emaildesk.Client()
mail.checkLogin()
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
maildesk-0.0.1.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file maildesk-0.0.1.tar.gz
.
File metadata
- Download URL: maildesk-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a007d243f7f3a5b20d24eb5f86b02a3cc5e6c33601d95ea960603e05d2c762a2 |
|
MD5 | 2a914fd18bdcce1bb984be4ee477d02c |
|
BLAKE2b-256 | 7561274a2ef9dfe17c389eadf4302b71c30837c6f7e54043ae65c8fa63c76911 |
File details
Details for the file maildesk-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: maildesk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60bd0a4e2dac907e0324ac3b8ce4180d847b0c4299e32cb181b68b2b6f3ee040 |
|
MD5 | b4b07aaf0d8b59dc43c199dfe6746266 |
|
BLAKE2b-256 | 441621d5c42267597ce682b34aba4aa8cbd0ee89398f40f69d1a429d42e9c671 |