SMS Setting Via Twilio - 30th April 2025

I hope It will be helpfull, easily found here.

Send SMS using JS Script

frappe.call({
                     method: "frappe.core.doctype.sms_settings.sms_settings.send_sms",
                     args: {
                         receiver_list: [frm.doc.contact_number],
                         msg: message,
                     },
                     callback: function(r) {
  
  
                         if (r.exc) {
                             msgprint(r.exc);
                             return;
                         }
                     }
             });

Send SMS using Python Script

from frappe.core.doctype.sms_settings.sms_settings import send_sms

send_sms([recipient_1,recipient_1], message, sender_name="Any Name")

Thanks.