1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-15 12:51:57 -05:00

Fixed email connecting to smtp server

Fixed an issue with not passing config in the smtp_connect
This commit is contained in:
Hemna 2021-10-25 11:12:29 -04:00
parent a3a3a5aa23
commit c8c23e6185

View File

@ -452,7 +452,7 @@ def send_email(config, to_addr, content):
msg["Subject"] = subject
msg["From"] = config["aprsd"]["email"]["smtp"]["login"]
msg["To"] = to_addr
server = _smtp_connect()
server = _smtp_connect(config)
if server:
try:
server.sendmail(