In the previous post we can send single sms. But now it was updated to bulk sms and sms can be repeated.
as shown in the figure. and supports all the providers shown in the image.
Note :- Please use (coma) "," to send bulk SMS
Ex: :- 9849996598,9999999999,8047845698
1 = SMS sent
-1 = Server Error
-2 = Invalid Username
-3 = Invalid message text
-4 = Login Failed
-5 = IP Blocked
-11 – Unsupported Provider (Since March 1 2013)
Download Bulk SMS Library
as shown in the figure. and supports all the providers shown in the image.
using SMSClassLibrary; // namespace
// class name
ReddyInfoSoft ris = new ReddyInfoSoft();
string res = ris.sendSMS("account id","pwd","sample SMS text","to no","provider","1");
Note :- Please use (coma) "," to send bulk SMS
Ex: :- 9849996598,9999999999,8047845698
1 = SMS sent
-1 = Server Error
-2 = Invalid Username
-3 = Invalid message text
-4 = Login Failed
-5 = IP Blocked
-11 – Unsupported Provider (Since March 1 2013)
Download Bulk SMS Library
hi can you please share the c# code
ReplyDeleteis this method is safe are not capturing id and password
ReplyDeleteplz send me the code for sending sms using way2sms.com
ReplyDeletemy email id is: anil.wanare75@gmail.com
Hello Raghavendra you can trust me. It's a safe code. and moreover if you feel in such a way don't use this code...
ReplyDeletesir will you please share this code on anjng028@gmail.com
DeleteHello anil you can add the dll file provided in this post as a reference to send messages....
ReplyDeletehi, can u plz send me the c# code of "SMSClassLibrary" plz plz i want that code for my project.
ReplyDeletemy mail id is "tarun.bjt@gmail.com"
Thank you :-)
I tried using it but Its not working
ReplyDeleteReddyInfoSoft ris = new ReddyInfoSoft();
string res = ris.sendSMS("aaaaaa", "aaaaa", "sample SMS text", "nos", "Airtel", "1");
Response.Write(res);
and response i get is
0 ( 2 members)
Hi Amit verma you should not give Airtel as a provider.
ReplyDeleteInstead, You can use :-
way2sms
160by2
fullonsms
site2sms........
Above providers are the websites API integrated...
1 means SMS sent,
-1 means some server error,
-2 means invalid username,
-3 means invalid message text,
-4 means login failed.
is there any unique key for way2sms or i just pass as a string 'way2sms'?
DeleteReddyInfoSoft ris = new ReddyInfoSoft();
Deletestring res = ris.sendSMS(uid, pswd, msg, mobile, "160by2", "1");
Good work. Can you please share logic if you dont mind for learning purpose (gmpat4u@gmail.com)
ReplyDeleteI am thinking to make an Android app.
Thanks in advance...
Hi can you share code of the same on kalubarmea@gmail.com
ReplyDeletewhen i use it in a windows application, it works great but when I use it in a web application if gives me an exception. any clue?
ReplyDeleteThe type initializer for '' threw an exception. System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at .Initialize() at .cctor() The action that failed was: LinkDemand The type of the first permission that failed was: System.Security.Permissions.SecurityPermission The Zone of the assembly that failed was: MyComputer
Hi Ashwin Still now i didnt checked in a web application. Let me check it and i will give reply asap.
ReplyDeleteHi Ashwin In the web site it is working perfectly.
ReplyDeleteplz help me with the c# code...i made the form and all...but i cant add the library to my projct.... rkaysha15@gmail.com
ReplyDeleteHi Kaysha R, Let me know the procedure u followeb and what is the ERROR u got?
ReplyDeleteHello guys
ReplyDeleteWhen i run this dll in my web application then following Exception is coming up..
AccessviolationException was unhanded..
i am not sure what happening ..
please give me any idea..
hi guys. this dll was great but i want one think that we send sms via way2sms we received our phone as Way2sms:********** * means my number. how i send my name as a sender.any ideas brother
ReplyDeleteHow can i use this dll in my asp.net pages ,
ReplyDeleteplz give me complete example on this
Hi ANIL BABU Mandla add this dll in your asp.net bin folder and use
ReplyDeleteusing SMSClassLibrary; // namespace
and now you can use this class in any meathod in that page
ReddyInfoSoft ris = new ReddyInfoSoft();
string res = ris.sendSMS("account id","pwd","sample SMS text","to no","provider","1");
hi varaprasad,
ReplyDeleteWe tried to register SMSClassLibrary.dll with gac or regsvr32 to use this dll in other my application. but its giving the error as dll was not registered with strong name. so could you please provide us a registered dll with strong key name or complete code to my mail id: prasad.maganti@live.com
no need to register SMSClassLibrary.dll , you jsut add as refference and call the method
Deleteadd SMSClassLibrary.dll
Deleteusing SMSClassLibrary;
ReddyInfoSoft ris = new ReddyInfoSoft();
string res = ris.sendSMS("uid", "pwd", "Hello", "tono", "way2sms", "1");
Hi, its working fine but i can not send 2nd time to same number.
ReplyDeleteplease help
Hi Milan Billara thanks for your reply. There wont be any problem to send 2nd time for the same No. Let me know any error U got.
Deletehey plz mail me the source code @ shreyash.ssn@gmail.com...
ReplyDeletehi, can u plz send me the c# code of "SMSClassLibrary" .
ReplyDeletemy mail id is "goudas42@gmail.com"
Thank you :-)
hi plz send c# code..when i trying to compile,it gives
ReplyDeleteError 1 The type or namespace name 'SMSClassLibrary' could not be found (are you missing a using directive or an assembly reference?)
plz send me soon guys...
hi...
ReplyDeletei got o/p like
sending failed(exception)
wat ill b reason 4 tis?
Hi kalai arasan, when i tested now it was working fine...
DeleteLet me know some more details..
sent 2 times with way2sms i i got sms
Deletehi kalai arasan, try to use try block ... it works fine when you use a try block
DeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeletecheers man !!
ReplyDeletei got it ... its working fine ... thanks a million
Hi,varaprasadreddy...Cheers for ur dll....its working splendid...Can you pls share the C# code with me so that I could use it in my web application...
ReplyDeleteMy email id is anooppg@indus-systems.com
Thanks in advance
Hi,varaprasadreddy...Cheers for ur dll....its working splendid...Can you pls share the C# code with me so that I could use it in my web application...
ReplyDeleteMy email id is anooppg@indus-systems.com
Thanks in advance
can u please share the code javadhafiz@gmail.com
ReplyDeletecan u please share code hetal.h.jariwala@gmail.com
ReplyDelete@Vishal Srinivas- please send me source code on rushikesh1313@gmail.com
ReplyDeletei am getting an error as 0(0 members)...plz help me..
ReplyDeleteHi,varaprasadreddy.
ReplyDeletetry
{
ReddyInfoSoft ris = new ReddyInfoSoft();
string res = ris.sendSMS(tb_id.Text, tb_pass.Text, tb_msg.Text, tb_to.Text, "160by2", "1");
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
this is my code , it is mot working
hi the way U mentioned as string is correct....
DeleteHai sir i have written the code as mentioned below
Deletenamespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//string Provider = "site2sms";
string accountID = uid.Text;
string password = pwd.Text;
string SMStext = msg.Text;
string to = phone.Text;
ReddyInfoSoft ris = new ReddyInfoSoft();
string result = ris.sendSMS("accountID", "password", "SMStext", "to", "site2sms");
}
}
}
but there is an error and the error is
A call to PInvoke function 'SMSClassLibrary!InitializeDelegate::Invoke' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
can u plz hele me with this error.
i'm using this for my project in my college so its important plz....
Thanks in advance
your proj is not working plz send me updated project
ReplyDeleteon akashchopda555@gmail.com
Its Not Working Plz Help My Mail is mukeshbjp@gmail.com
ReplyDeleteHi Vara Reddy, I tried your code for both i.e. way2sms as well as 160by2 but i am not able to send. the error it gives is -1. May i know the solution for it pls. Thanks in advance.
ReplyDeletehi friend this project is one of the module in my project...
ReplyDeleteso can u send me the code for this one ,its very useful for me pls brother by manimaran my email sullan.mp@gmail.com
i tried for way2sms and 160by2, returned 1 for only 160by2, but sms not recieved.
ReplyDeletegetting -1(0 members)
ReplyDeletetried but getting -1(0 member)
ReplyDeletethis is returning status = sending failed(exception)
ReplyDeletehi I am getting sending failed(exception ) error everytime
ReplyDeletepls help
Please share your code at tarun.usit@gmail.com if possible
ReplyDeleteThanks
Please tell me where should I have SMSClassLibrary.dll
ReplyDeletesir
ReplyDeleteI am interested in programming... on myself developed vb.net project for office purpose... and now need to send sms code integration with my project...
please send me the code to mail id
hi8880@gmail.com
please sir
ReddyInfoSoft ris = new ReddyInfoSoft();
ReplyDeletestring res = ris.sendSMS("jay","password","Hello" ,"1234567890", "indyarocks", "1");
if (res == "1")
{
MessageBox.Show("Message Send");
}
else if (res == "-1")
{
MessageBox.Show("Server Error");
}
else if (res == "-2")
{
MessageBox.Show("Invalid Username");
}
else if (res == "-3")
{
MessageBox.Show("Invalid Message text");
}
else if (res == "-4")
{
MessageBox.Show("Login Failed");
}
else if (res == "-5")
{
MessageBox.Show("IP Blocked");
}
else if(res=="-11")
{
MessageBox.Show("Unsupported Provider");
}
what is wrong with this code????can any one tell me plz???
i can not able to receive messages....i have checked in way2sms and indyarocks as well
ReddyInfoSoft ris = new ReddyInfoSoft();
ReplyDeletestring res = ris.sendSMS("jay","pass","Hello" ,"1234567890", "indyarocks", "1");
if (res == "1")
{
MessageBox.Show("Message Send");
}
else if (res == "-1")
{
MessageBox.Show("Server Error");
}
else if (res == "-2")
{
MessageBox.Show("Invalid Username");
}
else if (res == "-3")
{
MessageBox.Show("Invalid Message text");
}
else if (res == "-4")
{
MessageBox.Show("Login Failed");
}
else if (res == "-5")
{
MessageBox.Show("IP Blocked");
}
else if(res=="-11")
{
MessageBox.Show("Unsupported Provider");
}
}
what is wrong with this code??? I can not able to receive messages..i have tried from way2sms and indyarocks as well
Hi Jay Desai U can't send sms from way2sms and 160by2 sorry for the inconvenience and for the delay....
Deletethis post was not updated.....
check other posts in this blog ...
res shows result "1". but message still not sent. what should it be.?
ReplyDeleteI used "Ultoo" as provider and two numbers seperated with comma (for bulk sms). Messagebox.Show(res); results in 1 (1 member). but could not receive message. what could be the problem.
ReplyDeletesir will you please share this code on parisha.saxena@gmail.com
ReplyDeletesir i m typin this code but its not working plz tell me what is the problem
ReplyDeleteusing SMSClassLibrary;
namespace StoneInventoryManagement
{
public partial class CustomerList : Form
{
public CustomerList()
{
InitializeComponent();
}
private void btnCls_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnSend_Click(object sender, EventArgs e)
{
try
{
string accountID = txtAccId.Text;
string password = txtPswd.Text;
string SMStext = txtMsg.Text;
string to = txtMobNo.Text;
string provider = cmbProvider.Text;
string repeat = txtRepeatSMS.Text;
ReddyInfoSoft ris = new ReddyInfoSoft();
string res = ris.sendSMS(accountID, password, SMStext, to, provider, repeat);
if (res == "1")
{
MessageBox.Show("Message Send");
}
else if (res == "-1")
{
MessageBox.Show("Server Error");
}
else if (res == "-2")
{
MessageBox.Show("Invalid Username");
}
else if (res == "-3")
{
MessageBox.Show("Invalid Message text");
}
else if (res == "-4")
{
MessageBox.Show("Login Failed");
}
else if (res == "-5")
{
MessageBox.Show("IP Blocked");
}
else if(res=="-11")
{
MessageBox.Show("Unsupported Provider");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
}
please send source code smsclasslibrary.dll
ReplyDeletemy mail id is telaprolukesav13@gmail.com
I am getting sending failed(exception)..can you tell me why?can you send the source code to madhava@stellentsoft.com
ReplyDeleteHi two days before it was working fine but now its sending response as sending failed(exception)
ReplyDeleteAny idea.
am using fullonsms
Still it is giving No Internet Connection or Invalid Login.
ReplyDeleteAm using site2SMS/way2sms as provider,still no luck
Any clue
res gives the result 'Sending Failed (Exception)'
ReplyDeleteAlso exception 'SMSClassLibrary!InitializeDelegate::Invoke' has unbalanced the stack.' is thrown
I would like to use the services of way2 Bulk sms please send me the code really this service make my company to market every where thanks for sharing the article...
ReplyDeleteThanks for sharing this helpful information!!! Bulk SMS Service Provider in India
ReplyDelete