1
Answer

send message to multiple recipients

Ask a question
Hi!


My code allow me to send SMS to my cellnumber and its works.
But I want to learn how can I send the same message (or SMS) to multiple recipients.

Thanx!

My codes:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;




namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }


        private void button1_Click(object sender, EventArgs e)
        {
            try
                 {


                WebClient client = new WebClient();
                string to, msg;
                to = textBoxTo.Text;
                msg = textBoxMsg.Text;
               
                string baseurl = "http://api.clickatell.com/http/sendmsg?user=[x]&password=[xx]&api_id=[xxx]&to=[xxxx]&text=Message" + to + "'&text='" + msg + "'";
                client.OpenRead(baseurl);
                MessageBox.Show("Message sent");
         }
            catch (Exception ex)


         {
                MessageBox.Show(ex.Message);
           
 }  


 }
 }
}


Answers (1)