"""Email Model. Representation of an email object. Email contains information related to the to address, sender, subject, text body and html body. """ class Email(object): """Representation of an email.""" def __init__(self, to, subject, text_body, sender=None, html_body=None): """Instantiate an email object based on provided input. Args: to (str): Email address to send email to. sender (str): Will be set to donotreply if not provided. subject (str): Required subject for the email. text_body (str): Required text body for the email. html_body (str): Optional html body for the email. """ self.to = to self.sender = sender or 'donotreply@theorchard.com' self.subject = subject self.text_body = text_body self.html_body = html_body