You can use the SMS service to implement SMS sending functions for your application. When sending an SMS message, the application sends a request to the server, and the server calls sms.sendShortMessage to send the SMS message.
Reference
@ohos.telephony.sms (SMS)