Sending automatic SMS messages

First we use the .net server and sql.

I have a client who is interested in a system that will send SMS messages as scheduled.

I have never done anything like this, except sending sms via an email gateway, for example 5551234444@vtext.com. But, I do not think that this is an option for this, since our database will save the phone number and ignore the provider.

Thanks for any contribution to solving this problem.

+6
source share
7 answers

The easiest way is to use an SMS gateway that provides an API. Check txtlocal

, txtlocal, 2 - , , sms , , API.

+3

Clickatell .

RESTfull API, SMS , URL- .

, , .

+3

, SMS-, , PCI/USB GSM, , .

+1

. . , ( ).

+1

SMS, 00+countrycode+mobilenumber@smssturen.com 00447811111111@smssturen.com, .

: http://sites.google.com/site/emailtosmsgateway/

Dan.

+1

https://www.twilio.com/sms/pricing/gb

Twilio is also pretty cheap. Like clickatell, they also have an API, but their prices look cheaper by 0.04 US dollars (0.025 pounds sterling at today's exchange rate 06/22/2015) compared to clickatells with a cheap rate of 0.034 GBP.

0
source

:)

Here is something that I whipped up and seems to work well:

    public static void SendSMS(string from, string number, string subject, string message, SmtpClient smtp)
    {
        long.Parse(number);

        List<string> domains = new List<string>(
            "{N}.iws@iwspcs.net,{N}@airtelap.com,{N}@airtelkk.com,{N}@alertas.personal.com.ar,{N}@bplmobile.com,{N}@cingularme.com,{N}@clarotorpedo.com.br,{N}@comcel.com.co,{N}@cwemail.com,{N}@email.uscc.net,{N}@emtelworld.net,{N}@fido.ca,{N}@gocbw.com,{N}@gsm.sunrise.ch,{N}@ideasclaro-ca.com,{N}@iwirelesshometext.com,{N}@message.alltel.com,{N}@messaging.nextel.com,{N}@messaging.sprintpcs.com,{N}@mmode.com,{N}@mms.att.net,{N}@mms.bouyguestelecom.fr,{N}@mms.mymeteor.ie,{N}@mobile.celloneusa.com,{N}@mobiletxt.ca,{N}@movistar.com.co,{N}@msg.acsalaska.com,{N}@msg.gci.net,{N}@msg.globalstarusa.com,{N}@msg.iridium.com,{N}@msg.telus.com,{N}@msgnextel.com.mx,{N}@myboostmobile.com,{N}@myhelio.com,{N}@mymetropcs.com,{N}@page.att.net,{N}@page.nextel.com,{N}@pcs.rogers.com,{N}@qwestmp.com,{N}@sms.co.za,{N}@sms.ctimovil.com.ar,{N}@sms.mobitel.lk,{N}@sms.mycricket.com,{N}@sms.sasktel.com,{N}@sms.tigo.com.co,{N}@sms.t-mobile.at,{N}@text.aql.com,{N}@text.mtsmobility.com,{N}@tmomail.net,{N}@tms.suncom.com,{N}@torpedoemail.com.br,{N}@txt.att.net,{N}@txt.bell.ca,{N}@txt.bellmobility.ca,{N}@utext.com,{N}@vmobile.ca,{N}@vmobl.com,{N}@voda.co.za,{N}@vtext.com,+48{N}@text.plusgsm.pl,297+{N}@mas.aw,977{N}@sms.spicenepal.com,{N}@orange.pl,TwoWay.11{N}@nextel.net.ar,{N}@mmst5.tracfone.com"
            .Replace("{N}", number).Split(','));

        MailMessage mail = new MailMessage();
        mail.From = new MailAddress(from);
        mail.Subject = subject;
        mail.Body = message;
        domains.ForEach(d => mail.Bcc.Add(d)); 

        smtp.Send(mail);
    }

Domains were obtained here .

Refresh

Use https://www.twilio.com/ .

-1
source

All Articles