Skip to content
Sending Emails with Python
Profile icon
[deleted]

How do I send emails with python, I've tried using:

import smtplib, ssl

port = 0 # For SSL
password = "URmom"

Create a secure SSL context

context = ssl.create_default_context()

with smtplib.SMTP_SSL("[email protected]", port, context=context) as server:
server.login("[email protected]", password)
# TODO: Send email here
server.sendmail("[email protected]", "[email protected]", "Bob is cool")

You are viewing a single comment. View All
Profile icon
VulcanWM

I recently made a reminder bot which sends emails using Python when you need to receive the reminder:
https://repl.it/talk/share/My-Reminder-Bot/45424

Mark this as the answer if it was helpful or useful