Merge branch 'master' into coronaZeit
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user