Merge branch 'coronaZeit' into infoZettel

This commit is contained in:
marko
2022-01-16 18:53:38 +01:00
619 changed files with 8250 additions and 3477 deletions

View File

@@ -9,6 +9,7 @@ import json
import argparse
import yaml
from datetime import datetime
import certifi
def get_yaml(f):
'''Extracts the yamlHeader from a Markdown file'''
@@ -87,6 +88,9 @@ if __name__=="__main__":
# Create a secure SSL context
context = ssl.create_default_context()
# @todo This is a very bad hack, because the cert checking doesn't wor anymore
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
with smtplib.SMTP_SSL(config['smtp']['serverAddress'], config['smtp']['serverPort'], context=context) as server:
server.login(config['smtp']['login'], config['smtp']['password'])
for receiverEmail in receiverEmails: