How to send sms through asp.net with c# using some gateway(clickatell)?
anyone pls help me.. I have to include that part in my final year project.. I visited lots of websites, tutorials and all.. but nothing helped me. pls anyone guide me..
How to send sms through asp.net with c# using some gateway(clickatell)?
anyone pls help me.. I have to include that part in my final year project.. I visited lots of websites, tutorials and all.. but nothing helped me. pls anyone guide me..
Try e-mailing the message to PHONENUMBER@CARRIERNAME.COM.
For instance, in the USA, if you wanted to text 212-555-1212, a verizon wireless customer, you could just send an e-mail to 2125551212@vtext.com and it will convert your e-mail into an SMS message to the phone.
Now, let's suppose you don't know what carrier the person belongs to (maybe Cingular, maybe sprint)... you just drop the message to all of them and let 2 of them bounce!
Hi,
To send sms through asp.net with c# :
1) You can install a GPRS modem on the sending machine and send through the modem
2) You can use a public (for pay) webservice and send your messages that way.
3) You can use a free service like teleflip.com to send messages for free, and accept the fact that they will imprint a sponsor message at the bottom of each message you send. Teleflip.com is very simple, you just send an email to <userphonenumber>@teleflip.com and they take care of everything regardless of the carrier.
Here is the sample code for sending SMS.
Code:private void Send_Click(object sender, System.EventArgs e) { try { SmsTest.net.webservicex.www.SendSMS smsIndia= new SmsTest.net.webservicex.www.SendSMS(); SmsTest.com.webservicex.www.SendSMSWorld smsWorld = new SmsTest.com.webservicex.www.SendSMSWorld(); if(rdoType.SelectedValue == "1") smsIndia.SendSMSToIndia(txtMobileNo.Text.Trim(), txtEmailId.Text.Trim(), txtMessage.Text); else smsWorld.sendSMS(txtEmailId.Text.Trim(), txtCountryCode.Text.Trim(), txtMobileNo.Text.Trim(), txtMessage.Text); lblMessage.Visible = true; lblMessage.Text="Message Send Succesfully"; } catch(Exception ex) { lblMessage.Visible = true; lblMessage.Text="Error in Sending message"+ex.ToString(); } } private void rdoType_SelectedIndexChanged(object sender, System.EventArgs e) { if(rdoType.SelectedValue =="1") txtCountryCode.Enabled = false; else txtCountryCode.Enabled = false; }
While executing i am getting the foll error:
The type or namespace name SmsTest could not be found(you are missing a directive or an assembly reference?).
How to solve this error?
What is the carrier name for Airtel (TamilNadu)?
@cute girl.....
you have to inclue proper header file....
You can insert into carriers (name, numeric, mcc, mnc, apn, user, server, password, proxy, port, mmsproxy, mmsport, mmsc, type, current) VALUES ('Airtel', '40494', '404', '94', 'airtelgprs.com', '*', '', '*', '', '', '', '', 'null', 'default', 1);
And to solve the issue of the error message you are getting, you can follow the below example codes.
Code:private void Send_Click( object sender, System.EventArgs e) { try { SmsTest.net.webservicex.www.SendSMS smsIndia= new SmsTest.net.webservicex.www.SendSMS(); SmsTest.com.webservicex.www.SendSMSWorld smsWorld = new SmsTest.com.webservicex.www.SendSMSWorld(); if(rdoType.SelectedValue == "1") smsIndia.SendSMSToIndia(txtMobileNo.Text.Trim(), txtEmailId.Text.Trim(), txtMessage.Text); else smsWorld.sendSMS(txtEmailId.Text.Trim(), txtCountryCode.Text.Trim(), txtMobileNo.Text.Trim(), txtMessage.Text); lblMessage.Visible = true; lblMessage.Text="Message Send Succesfully"; } catch(Exception ex) { lblMessage.Visible = true; lblMessage.Text="Error in Sending message"+ex.ToString(); } } private void rdoType_SelectedIndexChanged( object sender, System.EventArgs e) { if(rdoType.SelectedValue =="1") txtCountryCode.Enabled = false; else txtCountryCode.Enabled = false; }
Bookmarks