Monday, October 12, 2009

Text Messages(SMS) from Emails

Some mobile phone companies allow receiving SMS (Short Messaging Service), MMS (Multimedia Messaging Service) though emails. This means that you can send a SMS to someone from your email account, which means that the sender will not be charged for the SMS transit.

How it works:
1. Create a new email from your email account
2. Mail to address is: (For AT&T) SeeMobil carriers
3. Check your mobile, and you will receive a new text message

SMS Implementation:

1. create a table MobileMessageType for all the mobil companies that your application will support i.e T-Mobil, AT&T, etc. See: Mobil carriers
2. Create a table MobileMessagingSetting with below fields (add more fields as needed such as max. sms per day):
message_type (use MobileMessageType table)
3. Create service classes and DAO
4. Create a mailing functionality which send emails to users using his/her mobil number and carrier email address to

See more mobile carriers gateways: