Send sms from C# or VB.NET to mopile phone - c#

I have tried to send an sms from C# code using Gmail but I can't find Gmail services for sending sms. I need any way to do that by Gmail or another posiibility. How can I send an sms from C# or VB.NET program to a mobile phone?

You can use the Twilio to Windows Azure Notification Hub service for this.

Its fairly hard to give you an accurate answer as it can depend on where you are and where you want to send SMS's to as some providers only support some countries or have issues sending to certain networks, so make sure you know what your requirements are before choosing a provider.
In the past I've used Clickatel, as they supported the countries and networks I needed, and their API was good enough.
The only other advice I would give is whatever service you end up using pay for it, free services are more trouble than they are worth.
Hope this helps,
Jen

Related

Possible to call phone numbers from an Azure Function App in C#?

I have an Azure Function App which sends emails and sms messages based on data received from an endpoint. Recently I've been asked to include phone calling for high priority issues. I haven't been able to find any resources or hints on how to handle this with using Azure resources.
Is this even possible with Azure resources? If not, can somebody point me in the right direction for how to accomplish this?
To my knowledge, it not possible with azure functions but you might want to look into azure communication services https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/telephony/pstn-call?pivots=platform-web :]
As i wrote in comments you can use Twilio or Plivo. I am using both, one as backup, as in my case I am using it for sms mainly, and if messages was not delivered with one carrier i will retry with other. Both works with Azure function.
As for twilio you can even have a look into AF binding but its only for sms.
Also other way of doing would using logic app. You could publish message to queue and then using connectors to do some stuff.
For instance plivo connector supports calls but twilio only sms

Send SMS from desktop application

How should I proceed? I found nothing useful googling it but some really expensive programs to connect a cell phone to the pc and use it to send the messages.
I'm willing to pay for the service and the messages will be sent to Israel and US.
I'm using C# but I'm willing to use any language.
Cheers!
The easiest way to do it is with Twilio. You can get it set up in a matter of minutes. Check out my answer Sending SMS from asp.net website for an example program of just how easy it is to send SMS with Twilio and C#.
You want to use an sms gateway that has an API. The most likely will be a REST or SOAP API that you can consume from your app.
When you need to send an SMS invoke the gateway's send method.
The gateway you choose will be influenced by which country you're in and if you need to send international sms.
As a reference we use SMS Global for AU message sending via their API, which can serve as an example of the type of thing you could expect:
http://www.smsglobal.com/en-au/technology/developers.php
Yea, for an actual sms message you will have to buy some hardware or software. A free alternative is to use sms gateways, http://en.wikipedia.org/wiki/List_of_SMS_gateways. You can send an email to 1234567890#vmoboile.ca and virgin mobile will forward that email as a text message to #1234567890. The limitation here is not every company offers this service (most major ones do) and you will have to know which company each number belongs to. Here is a list of sms gateways.
http://en.wikipedia.org/wiki/List_of_SMS_gateways
I have work on that purely through C#.
1st you need a sms modem, I live in Singapore and the vendor I got from resides in singapore too. But at home I did my own testing using my Nokia E63 handphone.
I don't have the coding at the moment, but I can tell you how to go about searching.
Using C#, I did a serial port connection (applicable too if using USB), send AT+ commands over to the modem, and the message will be sent.
To test if you phone is suitable, it can be done so using HyperTerminal. Connect your phone to the computer via the correct port and setting and send AT commands directly from there.
The best way to achieve this is to use an SMS gateway. An SMS gateway encapsulates the technicalities of interfacing with SMS carrier medium on one hand and on other hand it provides an interface for application level protocols like http, SMTP, ftp etc. to interact with it. For example, you can have a web application talking to the SMS Gateway over HTTP and the gateway on its other side will talk to the SMS centre over some proprietory protocol to send the SMS text received from the application. This way, the application need not know the low level protocols to send the SMSs.
You can lease a line to an SMS center (SMSC) if you need to send large number of bulk SMSs and configure your SMS gateway to use this lease line to send the msgs. But leasing a line is far more expensive. If you need to send small number of messages, then you can use your mobile phone in place of the leased line. Attach your mobile phone to your PC/Server and configure the Gateway to use your phone. You need to refer to your gateway documentation on interfacing your phone with the gateway. This is not very difficult but fairly simple.
There are lot of commercial gateways available in the market which can be used. But using an open source SMS gateway is a good option. You can use an open source gateway called - Kannel. Believe me, it is not very difficult to set it up and start using.

Easiest way to Send/Receive/Respond to IM in a website

I have a website written in C# and when a user does something I want to be able to send an IM message to an admin and allow the admin to respond to approve/deny the request.
I would like to use something like MSN Messenger or AIM so that the IM messages can also be sent to phones as sms.
You need to pay for the use of an SMS gateway of which there are many. Typically you buy bulk messages in advance. There are very few (if any) free gateways out there as we all know what scalping b*stards the cellular companies are. IIRC, the protocol used is SMPP.
http://en.wikipedia.org/wiki/SMS_gateway
If you weren't on a hosted site and owned your own hardware, you can plug any modern cell phone into your USB port and use the vendors software to send SMS either via a serial protocol using Hayes commands, or much more likely these days, a nice object model in java, C# or c++. Nokia have offered this for years.
I would take a look at Twilio (http://www.twilio.com/). They specialize in helping developers integrate SMS/Voice into applications.
Twilio is a web service that can be used to make and receive calls and text messages using their REST/XML API. You have to pay for the service, but it is very very to use.
For sending SMS messages out from the program, one simple approach is to use email (as long as you know the phone company of the person you're sending the message to). For example, to send a text to a telus (Canadian provider) phone, just send an email to
[10 digit phone number]#msg.telus.com.
Different phone companies have different formats, you would need to find a list of these addresses for your area. Not all of them support receiving these messages without paying a fee, but some do.
Edit: Here is a list of addresses for US carriers, try the appropriate one and see if it will work for you:
http://www.tech-recipes.com/rx/939/sms_email_cingular_nextel_sprint_tmobile_verizon_virgin/

Sending SMS using free gateway

I just wanted to develop one web application which allows users to send an SMS to any mobile free of charge . I searched on the net and found many codes and articles and through those articles i came to know that for that kind of application, i required either of the
following things:
Web service (Third party web services that are free but not working or not delivering the sms)
GSM Modem ( I don't have any idea about this)
SMS Gateway ( I don't have any idea about plz suggest me a idea
An SMS gateway is basically an API (usually a webservice) which you can call to send the SMS's. If you're not going to send very high volumes I think this is the way to go.
Try something like: ZeepMobile
They seem to have a pretty good guide as to how a developer would go about using their API, which can easily be applied to most SMS APIs out there.
So who is going to pay for the SMS? If the user isn't, then either the receiver or yourself will have to - telco's don't carry SMS messages for free, and they charge each other termination fees when messages arrive on their network from another.

How to create an IM bot with C#

Is there an easy way to create an IM bot on multiple im networks (aim, gtalk, yim, etc) that can accept and interpet specific commands sent to it to perform a server related task?
Lets say for instance I have a website for managing an rss feed. I want to send a command to an IM bot to add another feed to my collection. the IM bot would associate my screen name with my account from prior setup on the website.
I have done some internal bots for my company using the XMPP (Jabber) protocol, I've used the agsXMPP SDK and the Jabber.NET client libraries, I was looking for APIS to work with YIM, AIM and Windows Live Messenger but I've found only COM exposed APIS, nothing for .NET...
But an idea comes to my mind, with the XMPP Protocol you can configure a local server with IM Gateways, that allow users to access networks using other protocols through your server
I use eJabberd, you can install a variety of transport gateways to connect with other IM protocols (AIM, MSN, ICQ, GTalk...
To GTalk you can connect directly using the libraries I mention...
A sample ICQ gateway:
The short answer to this question is yes this can be done relitivly easily. Sedning and receiving IMs sending, receiving and interpreting requests from the network you wish to communicate on and there are libraries available for each of the major IM protocols to make this easier.
For messenger you can try the DotMsn library, I have used it in the past but at that time it was still quite new and I have not used it since so I can't vouch for it's quality.
Jabber uses the XMMP protocol which is an open-standard so there are bound to be plenty of client libraries available.
If I recall correctly Google Talk uses this protocol or a modified version thereof.
I dont have experience with c# but I have written one for AIM and Gtalk using PHP. http://www.imified.com/ is the best place to start if you looking for a easier way to write an IM bot.
Basically you create an account in imified.com .
Name your bot and link a script.
When ever a message is sent to the bot, imified.com automatically runs this script.
Here is a link for you get you started!
We have professional .NET/COM/VCL library for MSN/Yahoo/ICQ/AIM/GTalk/Jabber. Please take a look at http://www.imcomponents.com/ if you like.

Categories