Skip to content

Commit

Permalink
Bugfix: remember to return value
Browse files Browse the repository at this point in the history
  • Loading branch information
markhepburn committed Nov 13, 2023
1 parent 6cffc1a commit 7b8b8ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daily_pinboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b8b8ad

Please sign in to comment.