Generation

generate functionSat, 12 Nov 2022

Mail when docker container is down

def send_mail(from, to, subject, body): message = EmailMessage() message['Subject'] = subject message['To'] = to message['From'] = from message.set_content(body) s = smtplib.SMTP('localhost') s.send_message(message) s.quit()

Want to kickstart your project?Use the new AI Studio to create your code