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:
parent
a3a3a5aa23
commit
c8c23e6185
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user