This task can be performed using HttpSMS
Convert your Android phone into an SMS gateway
Best product for this task

HttpSMS
marketing
Save money by using your phone to send and receive SMS messages via a simple programmable API with end-to-end encryption.
What to expect from an ideal product
- Uses your existing phone to send encrypted SMS messages.
- Provides a simple API for developers to integrate.
- Ensures messages are encrypted end-to-end for security.
- Reduces costs by leveraging your phone’s SMS capabilities.
- Supports both sending and receiving messages securely.