Example #1
0
        self.msg['From'] = from_field
        self.msg['To'] = to_field

    def make_msg_content(self, content):
        pass
        #msg.set_content(content)

    def make_header(self):
        pass

    def print_msg(self):
        print(self.msg)


    with open('mail.txt', 'r') as mail:
        msg = MIMEText(mail.read())


msg = Message('a subject', '*****@*****.**', '*****@*****.**')
msg.make_msg_content(
        '''
        Dear me,

        It is a test.

        Sincerely,
        Alex
        '''
        )
#msg.print_msg()