wdf
This commit is contained in:
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user