fredabood / emailer

A simple class to send emails via python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emailer

A simple library to send emails via Python.

Example

from emailer import Email

user = dict(
    username='your@email.com',
    password='yourpass',
)

email = Email(**user)

kwargs = dict(
    recipient='recipient@email.com',
    subject='subject',
    body='body text',
    files=['/path/to/file/one.ext', '/path/to/file/two.ext'],
)

email.send(**kwargs)

kwargs = dict(
    folder='INBOX',
    queries=['SINCE 05-Jul-2014'],
)

messages = email.read(**kwargs)

About

A simple class to send emails via python.

License:MIT License


Languages

Language:Python 100.0%