added sendsms interface
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from .sendmail import sendmail
|
||||
|
||||
|
||||
SMS_GATEWAY_ADDRESS = "swissphone-gateway.com"
|
||||
|
||||
|
||||
def sendsms(phone_number, text):
|
||||
to_addr = f"{phone_number}@{SMS_GATEWAY_ADDRESS}"
|
||||
sendmail(to_addr, body=text)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user