relaxe every one we were all like this at one point you need to research sms gateways if u get a paid one then they will provide you the code or api if u want a free sms gateway you are look for gold dust to get a good (sends the text within 1000 years lol) one in england
yes the answer bove is correct but i had a gander at that and not all providers prodived that service eg virgin mobile uk
though gmail do a sms service free but only for cananda and usa and ghana and a few others :D
I did some research on this for a website I wrote a while back.
It seems you can send SMS for free to USA and India by checking the phone carriers website for the email address (as stated by quasipickle above).
I live in the UK and only managed to find services where you buy packs of 'credits' that are used to send each message.