[IMP] Change url for ovh smsapi

This commit is contained in:
2024-09-29 12:24:09 +02:00
parent 98282e6ee9
commit 3486c6629c

View File

@@ -54,7 +54,8 @@ function sendSms {
textSms=$(echo $textSms | sed -e 's/ /%20/g' | iconv -t iso-8859-1)
url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms"
#url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms"
url="https://www.ovh.com/cgi-bin/sms/http2sms.cgi?&noStop=1&account=$accountSms&login=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&message=$textSms"
tempfile=$(tempfile -p 'nutNotifySms-')
curl -s -o $tempfile $url
result=$(cat $tempfile | grep '<result>' | awk -F "[<>]" '{print $3}')
@@ -236,3 +237,4 @@ function conditionalNotification {
fi
}