sending sms through gsm modem

i wired a arduino in bread board i want to send sms through gsm modem if i take the sample programs in library it shows errors when comping pls send any working sample program for sending sms through gsm modem it is a rs232 type modem