使用 Twilio 的 SMS 通知

AccountSidAuthTokenToPhoneNumberFromPhoneNumber 换成你的凭据/目标收件人。你需要确保如果 ToPhoneNumberFromPhoneNumber 中有+,那么它们是 urlencoded(即:as%2B)

notification sms {
    post = https://{AccountSid}:{Authtoken}@api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json
    body = Body={{.}}&To={ToPhoneNumber}&From={FromPhoneNumber}
}

来自要点: https //gist.github.com/aodj/58535c4c152b6073eaf5