<filename>ex_reminder/ex_reminder.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Jones
# @File: ex_reminder.py
# @Email: <EMAIL>
import yagmail

class reminder:
    def __init__(self, sender_email, authorized_code, host, receiver_email, subject='An experiment from ex_reminder!'):
        self.subject = subject
        self.receiver_email = receiver_email
        self.host = host
        self.authorized_code = authorized_code
        self.sender_email = sender_email
        self.yag = yagmail.SMTP(user=self.sender_email, password=self.authorized_code, host=self.host)

    def send(self, content):
        self.yag.send(self.receiver_email, self.subject, content)


<filename>ex_reminder/ex_reminder.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Jones
# @File: ex_reminder.py
# @Email: <EMAIL>
import yagmail

class reminder:
    def __init__(self, sender_email, authorized_code, host, receiver_email, subject='An experiment from ex_reminder!'):
        self.subject = subject
        self.receiver_email = receiver_email
        self.host = host
        self.authorized_code = authorized_code
        self.sender_email = sender_email
        self.yag = yagmail.SMTP(user=self.sender_email, password=self.authorized_code, host=self.host)

    def send(self, content):
        self.yag.send(self.receiver_email, self.subject, content)


#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Jones # @File: ex_reminder.py # @Email: <EMAIL>