rework icons, codechanges, bugfixes, typofixes

This commit is contained in:
WorldTeacher
2024-10-09 08:47:48 +02:00
parent cd74214c17
commit 2746b917eb
58 changed files with 142 additions and 89 deletions

View File

@@ -109,7 +109,7 @@ class Mailer(Ui_eMailPreview):
self.buttonBox.accepted.connect(self.createAndSendMail)
def load_mail_templates(self):
print("loading mail templates")
# print("loading mail templates")
mail_templates = os.listdir("mail_vorlagen")
for template in mail_templates:
self.comboBox.addItem(template)
@@ -169,12 +169,12 @@ class Mailer(Ui_eMailPreview):
# server.starttls()
# server.auth(mechanism="PLAIN")
if config["mail"]["use_user_name"] == 1:
print(config["mail"]["user_name"])
# print(config["mail"]["user_name"])
server.login(config["mail"]["user_name"], password)
else:
server.login(sender_email, password)
server.sendmail(sender_email, self.prof_mail, mail)
print("Mail sent")
# print("Mail sent")
# end active process
server.quit()