For sending SMS, first you need to choose any SMS gateway provider. They will provide you the API which you needs to call when want to send SMS. Generally in these API we pass receiver phone number, sms content etc. In advance options we can use predefined templates also to send SMS.
So i would suggest first finalize any sms gateway, subscribe for their plan according to your requirement. They will provide you api details and documentation.
regards