Hi all, I am having difficulties with sending a SMS to more than one recipients.
void SendTextMessage()
{
Sim900Serial.print("AT+CMGF=1\r"); //Sending the SMS in text mode
delay(100);
Sim900Serial.println("AT + CMGS = "+1*********"");//The target phone number
delay(100);
Sim900Serial.println("Hello");//the content of the message
delay(100);
Sim900Serial.println((char)26);//the ASCII code of the ctrl+z is 26
delay(100);
Sim900Serial.println();
}
This is a portion of my code and I need help with adding more than one recipients. Any ideas on how to add a second recipient? Thanks, much appreciated! 
What have you tried ?
pass a phone number as a string to this function and call this function of yours from your loop code.
void SendTextMessage()
{
Sim900Serial.print("AT+CMGF=1\r"); //Sending the SMS in text mode
delay(100);
Sim900Serial.println("AT + CMGS = """) , ("AT + CMGS = """);//The target phone number
delay(100);
Sim900Serial.println("hello");//the content of the message
delay(100);
Sim900Serial.println((char)26);//the ASCII code of the ctrl+z is 26
delay(100);
Sim900Serial.println();
}
I tried others too but it only sends to the first number... Please help
You cannot send one message to multiple recipients in one go. It's SMS, not e-mail! You need to send several individual messages.
Use a for loop to pass the number(s) to your sendTextMessage function.
you can send the sms to one recipient at once so form a function with a string parameter to send the sms to multiple folks, don't worry sending another message in an interval of say 5seconds after you sent the first would seem to be received by the recipients almost at the same time.