еще пачка изменений, циферки, лифт, пиздюки, коллизии
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.
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.
@@ -22,9 +22,9 @@ else:
|
||||
sys.exit()
|
||||
|
||||
def send_email(addr_to, msg_subj, msg_text, files):
|
||||
addr_from = "print@enco72.ru" # Отправитель
|
||||
addr_from = "info@masharov-kvartal.ru" # Отправитель
|
||||
#addr_from = sys.argv[1]
|
||||
password = "jhPN<r2b22" # Пароль
|
||||
password = "2lsHfFDHN" # Пароль
|
||||
|
||||
msg = MIMEMultipart() # Создаем сообщение
|
||||
msg['From'] = addr_from # Адресат
|
||||
@@ -37,7 +37,7 @@ def send_email(addr_to, msg_subj, msg_text, files):
|
||||
process_attachement(msg, files)
|
||||
|
||||
#======== Этот блок настраивается для каждого почтового провайдера отдельно ===============================================
|
||||
server = smtplib.SMTP_SSL('smtp.gmail.com',465) # Создаем объект SMTP
|
||||
server = smtplib.SMTP_SSL('smtp.yandex.ru',465) # Создаем объект SMTP
|
||||
server.ehlo()
|
||||
#server.set_debuglevel(1)
|
||||
#server.starttls() # Начинаем шифрованный обмен по TLS
|
||||
|
||||
Reference in New Issue
Block a user