mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 08:53:27 +02:00
Update smtp.py
This commit is contained in:
+3
-1
@@ -190,10 +190,12 @@ def handle_sms(nodeID, message):
|
||||
if message.lower.startswith("sms:"):
|
||||
message = message.split(" ", 1)
|
||||
if nodeID in sms_db:
|
||||
count = 0
|
||||
for address in sms_db[nodeID]:
|
||||
count += 1
|
||||
logger.info("System: Sending SMS for " + nodeID)
|
||||
send_email(address, message[1], nodeID)
|
||||
return "📲SMS-sent 📤"
|
||||
return f"📲SMS-sent {count} 📤"
|
||||
else:
|
||||
return "📲No address set, use 📲setsms"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user