• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMS sending

 
tracy teo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.. How do I send sms to more than 1 person at the same time? When the car was being stolen, the nokia 12i have to send sms to inform the owner and maybe his wife also. I have written the j2me codes but i can onli send to one number.

This is how i have wrote:
//define the individual phone number
String targetAddress = "sms://+18005555555:5678";
String targetAddress1 = "sms://+0123456789:5678";

//set the address to be send to
txtMessage.setAddress(targetAddress1);
txtMessage.setAddress(targetAddress);

however, it only manages to sent to the targetAddress1.. Why?
 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tracy why not try using a loop to send.
let the addresses be in a string array and loop through it as u send.
hope u understand my drift.
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may only set one address at a time. Like Bosco said you may use a loop for sending it too multiple destinations.

 
tracy teo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yup thanz.. I knew what u meant.. I have tried it out and have managed to solved the problem.. thanz for all of ur reply..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic