Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a following code to send an SMS and in references add SMSClientLibrary...but sms not deliver..pls give me some suggetion.
--------------------------------------------------------------------
C#
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 SMSClientLib;
using System.Net;

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

        private void buttonSend_Click(object sender, EventArgs e)
        {
            string status = "";
            //CookieContainer cookie=

            CookieContainer cookie = Login.Connect(textBoxID.Text, textBoxPassword.Text, out status);
            string[] siteParameters = Login.GetSiteParameters(cookie);
            string messgeSentResult = SendSMS.Send_Processing(textBoxSendTo.Text, richTextBox1.Text, cookie, siteParameters);
            MessageBox.Show("Msg sent successfully..");
        }
    }
}
Posted

1 solution

You subjected "SMS not deliver on a perticular mobile .. but code get successfully executed"


Particular mobile means ?? Will your code is executing for other mobile no??

If yes then That particular mobile is DND Activated and your SMS service is not able to send messages on DND Activated Mobile nOs.


Thanks
Ashish
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900