How to programmatically send SMS on the iPhone

How to programmatically send SMS on the iPhone

This is our code.How to implement it in iphone
<a
href="sms:;?body=Hello">Send SMS</a>