PyMail IO

PyMailIO is a low level class designed to be used be authors of libraries etc.

class pymail_io.pymail_io.AbstractPyMailIO[source]
class pymail_io.pymail_io.PyMailIO(*args, **kwargs)[source]
Kwargs

Key password

Your senders email password.

Key receiver_email

This can be either a string or a list of email addresses.

Key sender_email

The senders email address.

Key db

The Redis store database name.

Key workers

The number of workers created to run tasks in the queue.

Key email_host

The email server host.

Key email_port

The email server SSL or TLS port.

add_email_to_queue(subject: str, body: str, receiver_email: Union[str, List[str]])[source]
Parameters
  • subject

  • body

Returns

email_host: str = None

The email server host.

password: str = None

PyMailIO iss a python library built on CPython’s AsyncIO library. The entree to asyncio is via PyTaskIO which is an asynchronous task queue library that runs an event loop in a background thread.

Setting up the library for debugging. Example:

export PYTASKIO_DEBUG=1

The senders email password.

queue: pytask_io.pytask_io.PyTaskIO = None

Accesses the PyTaskIO task queue library

async send_email_async(subject: str, body: str) → Awaitable[Dict[str, Any]][source]
Parameters
  • subject

  • body

Returns

send_email_sync(subject: str, body: str)[source]
Parameters
  • subject

  • body

Returns

sender_email: str = None

The senders email address.