rebase codebase, delete trunk, move threads to backend
This commit is contained in:
@@ -30,6 +30,7 @@ empty_signature = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://ww
|
||||
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html>
|
||||
"""
|
||||
|
||||
|
||||
class Mail_Dialog(QtWidgets.QDialog, MailPreviewDialog):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -115,7 +116,7 @@ Tel.: 0761/682-778 | 07617682-545"""
|
||||
return f"Sehr geehrte Frau {prof},"
|
||||
elif self.gender_non.isChecked():
|
||||
self.btn_okay.setEnabled(True)
|
||||
name = f"{self.profname.split(" ")[1]} {self.profname.split(" ")[0]}"
|
||||
name = f"{self.profname.split(' ')[1]} {self.profname.split(' ')[0]}"
|
||||
return f"Guten Tag {name},"
|
||||
|
||||
def set_mail(self):
|
||||
@@ -174,7 +175,7 @@ Tel.: 0761/682-778 | 07617682-545"""
|
||||
with smtplib.SMTP_SSL(smtp_server, port) as server:
|
||||
server.connect(smtp_server, port)
|
||||
# server.connect(smtp_server, port)
|
||||
# server.auth(mechanism="PLAIN")
|
||||
# server.auth(mechanism="PLAIN")
|
||||
if config.mail.use_user_name is True:
|
||||
# print(config["mail"]["user_name"])
|
||||
|
||||
@@ -183,8 +184,8 @@ Tel.: 0761/682-778 | 07617682-545"""
|
||||
server.login(sender_email, password)
|
||||
server.sendmail(sender_email, tolist, mail)
|
||||
|
||||
# print("Mail sent")
|
||||
# end active process
|
||||
# print("Mail sent")
|
||||
# end active process
|
||||
server.quit()
|
||||
logger.info("Mail sent, closing connection to server and dialog")
|
||||
# close the dialog
|
||||
|
||||
Reference in New Issue
Block a user