This commit is contained in:
2023-09-11 21:20:26 +05:00
parent 9526f9e7d9
commit 4d3e876cff
17 changed files with 11 additions and 54 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4 -4
View File
@@ -24,7 +24,7 @@ else:
def send_email(addr_to, msg_subj, msg_text, files):
addr_from = "info@masharov-kvartal.ru" # Отправитель
#addr_from = sys.argv[1]
password = "2lsHfFDHN" # Пароль
password = "SY88/Z4mpb" # Пароль
msg = MIMEMultipart() # Создаем сообщение
msg['From'] = addr_from # Адресат
@@ -37,10 +37,10 @@ def send_email(addr_to, msg_subj, msg_text, files):
process_attachement(msg, files)
#======== Этот блок настраивается для каждого почтового провайдера отдельно ===============================================
server = smtplib.SMTP_SSL('smtp.yandex.ru',465) # Создаем объект SMTP
server.ehlo()
server = smtplib.SMTP('mail.masharov-kvartal.ru',587) # Создаем объект SMTP
#server.ehlo()
server.set_debuglevel(1)
#server.starttls() # Начинаем шифрованный обмен по TLS
server.starttls() # Начинаем шифрованный обмен по TLS
server.login(addr_from, password) # Получаем доступ
# server.auth_plain()