Emailer

class imagepypelines.core.io.Emailer(sender, recipients, subject='noreply: imagepypelines automated email', server_name='smtp.gmail.com', server_port=465)[source]

Bases: object

Goal is to build an object which can be used to automatically send emails after a test or run completes.

Methods Summary

attach(filename) attaches a file to the email message
body(text) sets the body of the current email message
close()
get_msg() returns the current email message or creates a new one if one is not already queued
send([password]) sends the current message and clears the template so a new message can be created

Methods Documentation

attach(filename)[source]

attaches a file to the email message

body(text)[source]

sets the body of the current email message

close()[source]
get_msg()[source]

returns the current email message or creates a new one if one is not already queued

send(password=None)[source]

sends the current message and clears the template so a new message can be created