Click here to Skip to main content
14,430,901 members
Rate this:
Please Sign up or sign in to vote.
See more:
dear sir

i used to send sms by AT command by using my
nokia symbian phone
then it was supperly works then that cell phone not working any more then now how can do same with any od android phone use is there any way to send sms by using and that deduction money my cell phone network provider or my account which is SIM i use in my cell phone please help to guide

What I have tried:

i did not use any code yet because i am new learning
Posted
Updated 3-Mar-19 17:46pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

   
Comments
irfanansari 3-Mar-19 9:01am
   
sir thanks but this is android app i want to help in .net asp.net or form help code way
irfanansari 3-Mar-19 9:01am
   
sir thanks but this is android app i want to help in .net asp.net or form help code way as link https://www.codeproject.com/Articles/857539/SMS-Gateway-using-Android-Phone
Rate this:
Please Sign up or sign in to vote.

Solution 2

This is going to vary from phone to phone, and does not work with all devices. Most likely you will need to root the phone and use ADB to access the baseband processor.

You may want to search for Android GSM Modem
   
Comments
irfanansari 4-Mar-19 7:56am
   
how to use GSM Modem Emulator by dot net
MadMyche 4-Mar-19 8:02am
   
you could try that
irfanansari 4-Mar-19 8:10am
   
i just tried and then i got a ip address then port number but is there any way to use code to use it in dot net
MadMyche 4-Mar-19 9:29am
   
I would look for an API, and then you could use it with any language
irfanansari 5-Mar-19 6:47am
   
thanks sir
irfanansari 9-Mar-19 8:45am
   
sir as you said this is not working with all devices then can you tell what way use by http://www.ozekisms.com/ they give app in android phone and they start service in device it generate a ip and then user name and password after that you can use that by this desktop app application in your computer and you also use its code by your own any programming language as like c sharp i did but there is a problem that it is use add some by default text which is this is send by ozeki i do not want to this
irfanansari 9-Mar-19 8:49am
   
Imports System
Imports System.IO
Imports System.Net
Imports System.Text
Imports System.Web

Public Class fMain

Private Sub bSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bSend.Click
Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim url As String
Dim username As String
Dim password As String
Dim host As String
Dim originator As String

Try

host = "http://127.0.0.1:9501"
originator = "06201234567"
username = "admin"
password = "abc123"

url = host + "/api?action=sendmessage&" _
& "username=" & HttpUtility.UrlEncode(username) _
& "&password=" + HttpUtility.UrlEncode(password) _
& "&recipient=" + HttpUtility.UrlEncode(tbReceiver.Text) _
& "&messagetype=SMS:TEXT" _
& "&messagedata=" + HttpUtility.UrlEncode(tbMessage.Text) _
& "&originator=" + HttpUtility.UrlEncode(originator) _
& "&serviceprovider=GSMModem1" _
& "&responseformat=html"

request = DirectCast(WebRequest.Create(url), HttpWebRequest)

response = DirectCast(request.GetResponse(), HttpWebResponse)

MessageBox.Show("Response: " & response.StatusDescription)

Catch ex As Exception
End Try
End Sub
End Class

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100