What do you want to save?
Add Code snippet
New code examples
-
Html 2022-03-13 08:00:27
python send email with html template
# import the necessary components first import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart port = 2525 smtp_server = "smtp.mailtrap.io" login = "1a2b3c4d5e6f7g" # paste your login generat... Add solution -
Other 2022-03-04 04:45:13
ssl.sslerror: [ssl: wrong_version_number] wrong version number (_ssl.c:1108)
server = smtplib.SMTP_SSL('smtp.mail.com', 587) server.login("[email protected]", "password") server.sendmail( "[email protected]", "[email protected]", "email text") server.quit() Add solution -
Python 2022-01-22 12:27:12
how to code J.A.R.V.I.S
import pyttsx3 #pip install pyttsx3 import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib engine = pyttsx3.init('sapi5') voices = engine.getProper... Add solution -
Other 2021-11-09 10:43:18
dkim.verify(email_message) TypeError: expected string or bytes-like object
def email(): msg = MIMEMultipart() msg['Subject'] = 'test' msg['From'] = 'XXX' msg['To'] = 'XXX' msg.preamble = 'preamble' body = MIMEText("This is the body of the message") msg.attach(body) with open("te... Add solution -
Python 2021-08-29 21:15:01
smtplib login
import smtplib server = smtplib.SMTP_SSL('smtp.gmail.com', 465) server.login("your username", "your password") server.sendmail( "[email protected]", "[email protected]", "this message is from python")... Add solution