Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # send mail
- import smtplib
- from email.mime.text import MIMEText
- str_msg = u"Загружен файл {}, для {} записей найдено {} соответствий".format(down_file_name, total_uids_count, matched_uids_count)
- msg = MIMEText(str_msg.encode('utf-8'), 'plain', 'UTF-8')
- msg['Subject'] = 'wargaming match'
- msg['From'] = "wg@hubrus.com"
- msg['To'] = "wg@hubrus.com"
- s = smtplib.SMTP('localhost')
- s.sendmail("wg@hubrus.com", "wg@hubrus.com", msg.as_string())
- s.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement