diff --git a/daily_pinboard.py b/daily_pinboard.py index a7dea4f..469d01b 100755 --- a/daily_pinboard.py +++ b/daily_pinboard.py @@ -67,6 +67,8 @@ def create_msg(self, msg_html): msg['To'] = self.email msg.attach(MIMEText(msg_html, 'html')) + return msg + def send_msg(self, msg): with smtplib.SMTP_SSL(host=self.server, port=465) as server: server.login(self.username, self.password)