Is it possible to connect and send a message via a GSM modem using asp.net?

I developed an aC # winforms application for sending sms using this article Sending sms using GSM This works very well ... Now I want to send sms using a GSM connection (i.e.) a mobile phone connected to a PC, and I detected it and sent sms using it in asp.net .....

Is it possible to connect and send a message via a GSM modem using asp.net?

+4
source share
4 answers

Of course you can! The only thing is that since ASP.NET is server-side programming, the GSM modem must be connected to the server on which the application is running. Even your existing code can be reused. Put this code in an open interface assembly to get functionality. Include it in your ASP.NET application and you can send SMS.

+2
source

There should be no difference if your application is a regular console / winforms application or if it is an ASP.NET application.

You just would like to be a little more secure if anyone on the Internet can connect to your site and send messages ...

0
source

Yes. You can create a Windows service that contains the logic for accessing the GSM modem and sending SMS messages. This service may be available from your ASP.NET web application.

There are many articles about starting a WCF service as a Windows service, here is one on MSDN, Hosting and Using WCF Services ,

But, on the other hand, the configuration of the service may be excessive. You can use your library from your application just as well.

0
source

You can do this, as Kankan mentioned in his answer. You will need to connect the modem to the server, which will be less feasible and very less recommended . The best option you have is to subscribe to a third-party SMS gateway and send SMS via an HTTP advise. There are many providers who provide this service. Just go to Google and you will find the one that best suits your needs.

0
source

Source: https://habr.com/ru/post/1309282/


All Articles