I am now facing a problem to sent a short message to a smart mobile device. There is no problem to sent a mail to a mail address by using SMTP. But, in my current project, I am in problem to re-set userid and user password through a message to user's mobile device.
Do you help me?

Recommended Answers

All 9 Replies

What do you need help with specifically?

I am in a project(vb.net), from where I can sent the User ID and User Password to User's Smart Phone through SMS by Clicking a Button. Using SMTP, I am able to sent it to user's mail ID, but not through SMS to Smart Phone.
I need a help about this.

I'm not aware of what a "mail ID" is. What are you trying to use to send the SMS? Any sample code?

Sorry, I say it wroungly. Please read it mail address in liue of mail ID.

Still, what API are you using for the SMS? What problem is occuring with the SMS? You can't expect me to psychically figure out what your problem is without any information.

I do not understnd how do I start or which system files I can call and how can I use them to sent a Message to a Smart Phone through Internet.
To sent a e-mail, the following code lines, I have written in my project.

Imports System
Imports System.Net
Imports System.Net.Mail

Public Class Send_mail

Public Shared Sub Main(ByVal args As String())

    ' Create and configure the SmtpClient that will send the mail.
    ' Specify the host name of the SMTP server and the port used
    ' to send mail.
    Dim client As New SmtpClient("mail.somecompany.com", 25)

    ' Configure the SmtpClient with the credentials used to connect
    ' to the SMTP server.
     client.Credentials = New NetworkCredential("user@somecompany.com", "password")

    ' Create the MailMessage to represent the e-mail being sent.
    Using msg As New MailMessage

        ' Configure the e-mail sender and subject.

        msg.From = New MailAddress("user@somecompany.com")

        msg.Subject = "Greetings from Visual Basic Recipes"

        ' Configure the e-mail body.
        msg.Body = "This is a welcome message  " & _
                   "Attachment is a text file and a binary ."

        ' Attach the files to the e-mail message and set their MIME type.
        msg.Attachments.Add(New Attachment("..\..\Source.txt", "text/plain"))
        msg.Attachments.Add(New Attachment("Source.gif", "application/octet-stream"))

        ' Iterate through the set of recipients specified on the
        ' command line. Add all addresses with the correct structure
        ' as recipients.
        For Each arg As String In args

            ' Create a MailAdress from each value on the command line
            ' and add it to the set of recipients.


               msg.To.Add(New MailAddress(arg))

            Catch ex As FormatException

              ' Proceed to the next specified recipient.
              Console.WriteLine("{0}: Error -- {1}", arg, ex.Message)
              Continue For

            End Try

           ' Send the message.


    End Using

    ' Wait to continue.
    msgbox("Message sent successfully")

End Sub

End Class

So you're saying you haven't attempted to send an SMS yet. If you have ne idea where to start, why not start by searching the web?

You can'nt send a SMS to a telephone without a conversion provider. Earlier there were some internet services providing such a service. If you can find such a service to-day you need a contract with them, an they may tell you how their protocol is.

An other way may be through an interface to your telephone. You then have to design your hardware interface to that telephone and design the software for that interface.

Remember, that it is not free to send an SMS.

There is a SDK called Ozeki it has a trial so I think you can google that and incorporate that to be able to send SMS and calls and also you will need a VOIP account, the best solution you can try incorporating with the wise:SIP if you have an internet connection. Other then that check out google and I've found a couple of resources that maybe helpful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.