|
|
@@ -116,9 +116,10 @@ def send_email(who, title, data):
|
|
|
smtp.sendmail(smtp_email, who, msg.as_string())
|
|
|
|
|
|
smtp.quit()
|
|
|
- except:
|
|
|
+ except Exception as e:
|
|
|
print('----')
|
|
|
print('Error : Email send error')
|
|
|
+ print(e)
|
|
|
|
|
|
def last_change(data):
|
|
|
json_address = re.sub(r"(((?!\.|\/).)+)\.html$", "set.json", skin_check())
|
|
|
@@ -257,7 +258,7 @@ def set_init():
|
|
|
|
|
|
curs.execute(db_change('select data from other where name = "smtp_server" or name = "smtp_port" or name = "smtp_security"'))
|
|
|
if not curs.fetchall():
|
|
|
- for i in [['smtp_server', 'smtp.gmail.com'], ['smtp_port', '587'], ['smtp_security', 'tls']]:
|
|
|
+ for i in [['smtp_server', 'smtp.gmail.com'], ['smtp_port', '587'], ['smtp_security', 'starttls']]:
|
|
|
curs.execute(db_change("insert into other (name, data) values (?, ?)"), [i[0], i[1]])
|
|
|
|
|
|
def pw_encode(data, data2 = '', type_d = ''):
|