Smtp certs
Jump to navigation
Jump to search
import smtplib, ssl port = 587 smtp_server = "foo.example" context = ssl.create_default_context() with smtplib.SMTP(smtp_server, port) as server: server.ehlo() server.starttls(context=context) server.ehlo()