TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pravin Mote
NA
4
723
SMS Not Send on Mobile No. Using C# Window App.
Feb 1 2016 7:44 AM
Any one can help me how to send Message www.Way2SMS.com using C# Window Application.
I'm trying no. of times . My code is run successfully but message is not send on destination mobile no. or i had checked on www.Way2SMS.com site SentSMS but not sent Messages .
so i need help for sending SMS using My app .
My Code IS : -
private void btn_SendMessage_Click(object sender, EventArgs e)
{
try
{
send("8888781552", "pravin11", txt_RecieverMobileNo.Text, txt_MessageBody.Text);
MessageBox.Show("message send successfully......");
}
catch
{
MessageBox.Show("Error Occured!!!");
}
}
public void send(string uid, string password, string message, string no)
{
// http://site21.way2sms.com/ebrdg.action?id=
// http://wwwd.way2sms.com//FirstServletsms?custid=
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://site21.way2sms.com/ebrdg.action?id=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + " ");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
}
}
so Rply any one......
& Thanx in Advance.
Reply
Answers (
0
)
C#.net excel
Sending Email using Windows Application C#