l'invio di sms attraverso l'aiuto way2sms necessari
Domanda
Sto costruendo un'applicazione desktop in Visual C # 2.0 in grado di inviare SMS tramite way2sms.com. qualcuno di voi ve provato cosa del genere ...? si prega di aiuto.
Soluzione
Questo legame ha una soluzione
http://www.aswinanand.com/ 2008/07 / send--sms-web-servizio gratuito /
Possiamo passare parametri all'URL fornito con l'aiuto di una classe Web richiesta. L'ho fatto con righe seguenti
HttpWebRequest request = (HttpWebRequest) WebRequest.Create("_http://www.aswinanand.com/sendsms.php?uid=" + this.txtUserID.Text + "&pwd=" + this.txtPassword.Text + "&phone=" + this.txtToMobileNo.Text + "&msg=" + this.txtMessage.Text);
StreamReader reader = new StreamReader(request.GetResponse().GetResponseStream(), Encoding.UTF8);
return reader.ReadToEnd();
C'è un altro strumento implementato in Java disponibile all'indirizzo http://way2sms.codeplex.com/ , che sto di applicazione in C # ora.
Altri suggerimenti
Mai usato way2sms. Ho usato Clickatell. E le grandi opere anche su server web.
: ecco un buon articolo su l'invio di sms in C # utilizzando way2sms
I hav sviluppato un'API di way2sms e altri fornitori che possono essere utilizzati direttamente da tutti .. controllo fuori a http: //ubaid.tk/sms/
è possibile utilizzare la pagina web creata da me, oppure u possibile utilizzare la struttura API .. per esempio, l'applicazione può direttamente FWD la richiesta al
http://ubaid.tk/sms/sms.aspx? uid = 99999xxxxx & pwd = 12345 & msg = il vostro SMS che u want 2 Invia e telefono = 9996669990 & Provider = way2sms
dove uid è l'ID utente way2sms, pwd è la password way2sms, MSG è ur messaggio che deve essere inviato, e il telefono è il numero di telefono wher u vuole trasmettere gli sms .. i fornitori di differenziazione sono way2sms, fullonsms, smsinside e tezsms ..
funziona al 100%, per tutto il tempo ..:)
applausi ..
Per questo è necessario inserire le API per SMS e integrare nella vostra applicazione asp.net.
>> Where YOUR_USERNAME your way2sms/160by2/fullonsms/sms440/site2sms USERNAME(ie mobile number)
>>Where YOUR_PASSWORD your way2sms/160by2/fullonsms/sms440/site2sms PASSWORD.
>> Where YOUR_RECEPTIANT is to which number you want to send SMS.
>> Where YOUR_MESSAGE is the message you want to send.
>> Where YOUR_GATEWAY is way2sms/160by2/fullonsms/sms440/site2sms.
string connectionString = "<a href="http://alfasms.alfredfrancis.in/?uname=YOUR_USERNAME&pass=YOUR_PASSWORD&to=YOUR_RECEPTIANT&mess=YOUR_MESSAGE&gateway=YOUR_GATEWAY">http://alfasms.alfredfrancis.in/?uname=YOUR_USERNAME&pass=YOUR_PASSWORD&to=YOUR_RECEPTIANT&mess=YOUR_MESSAGE&gateway=YOUR_GATEWAY</a>";
try
{
System.IO.Stream SourceStream = null;
System.Net.HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(connectionString);
myRequest.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse webResponse = (HttpWebResponse)myRequest.GetResponse();
SourceStream = webResponse.GetResponseStream();
StreamReader reader = new StreamReader(webResponse.GetResponseStream());
string str = reader.ReadLine();
}
catch (Exception ex)
{
}
Si prega di visitare
http://mohanramphp.kodingen.com/blog/2011/01/13/send-free-sms-%E2%80%93-web-service/
Al codici aswinanand
presenti per l'invio di sms è inattivo.
L'utilizzo di sms di invio è dato in blog.
Breve Esempio di utilizzo:
http://mohanramphp.elementfx.com/sms/index.php?uid=9933445566&pwd=password&phone=9812345678;9933445566&msg=This è un messaggio di esempio