Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

maildesk-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page