import subprocess import smtplib import socket from email.mime.text import MIMEText import datetime # Change to your own account information to = '