How do I send emails with python, I've tried using:
import smtplib, ssl
port = 0 # For SSL password = "URmom"
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")
https://www.freecodecamp.org/news/send-emails-using-code-4fcea9df63f/
You can use this link also
If this helped then choose this as the answer you were looking for!
Sending Emails with Python
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")
https://www.freecodecamp.org/news/send-emails-using-code-4fcea9df63f/
You can use this link also
If this helped then choose this as the answer you were looking for!