Skip to content

Commit

Permalink
Bugfix: use SSL version of smtp client
Browse files Browse the repository at this point in the history
  • Loading branch information
markhepburn committed Nov 13, 2023
1 parent adc17d2 commit 6cffc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daily_pinboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create_msg(self, msg_html):
msg.attach(MIMEText(msg_html, 'html'))

def send_msg(self, msg):
with smtplib.SMTP(host=self.server, port=465) as server:
with smtplib.SMTP_SSL(host=self.server, port=465) as server:
server.login(self.username, self.password)
server.send_message(msg)

Expand Down

0 comments on commit 6cffc1a

Please sign in to comment.