Skip to content

Commit

Permalink
Fix for sending emails (#5)
Browse files Browse the repository at this point in the history
Fix for SMTP setup
  • Loading branch information
raven-wing committed Jan 3, 2023
1 parent fef609e commit a3d7bbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platzky/plugins/sendmail/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def send_mail(sender_email, password, smtp_server, port, receiver_email, subject, message):
full_message = f'From: {sender_email}\nTo: {receiver_email}\nSubject: {subject}\n\n{message}'

server = smtplib.SMTP(smtp_server, port)
server = smtplib.SMTP_SSL(smtp_server, port)
server.ehlo()
server.login(sender_email, password)
server.sendmail(sender_email, receiver_email, full_message)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "platzky"
version = "0.1.18"
version = "0.1.19"
description = "Another blog in python"
authors = []
license = "MIT"
Expand Down

0 comments on commit a3d7bbd

Please sign in to comment.