×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    5

    Problem in sending SMS

    Hi,
    I am using Nokia 3230 model and VB express edition.Im new to VB.Im trying to develop an application to send a SMS. I am using Nokia SMS adapter api for sending sms. I am attaching my code below. It is not giving any error, but it is not sending the SMS also.Pls tell me what to do.

    Code:

    Imports SMS3ASuiteLib

    Public Class Form1
    Dim smssend As SMS_SuiteAdapter
    Dim shortmsg As ShortMessage

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    smssend = New SMS_SuiteAdapter
    End Sub

    Private Sub ButtonSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSend.Click

    On Error GoTo errorhandler
    shortmsg = smssend.CreateShortMsg
    shortmsg.UserDataText = "sms Send"
    shortmsg.OtherEndAddress = "+919884200080"
    shortmsg.SCAddress = "+919840011003"
    smssend.Send(shortmsg)
    errorhandler:
    Dim smserror As NmpAdapterError
    smserror = smssend.GetLastError
    Select Case smserror
    Case NmpAdapterError.errPhoneNotConnected
    MsgBox("Phone Not Connected")
    Case NmpAdapterError.errSmsNoSCAddress
    MsgBox("No service address")
    Case NmpAdapterError.errSsAbsentSubscriber
    MsgBox("Absent Subscriber")

    End Select


    End Sub

    Private Sub ButtonExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    smssend.Terminate()
    smssend = Nothing
    End Sub
    End Class

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,345

    Smile Re: Problem in sending SMS

    Hello Sylvia,

    You have come across in wrong discussion board, i think.

    This discussion board is meant for Symbian C++.
    So i don't think this board may help you.

    Sorry for not being useful as we live with Symbian C++, not with VB.

    Regards.
    Kiran.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    5

    Re: Problem in sending SMS

    Thanks fo the information. Can u please help me out in posting it in the correct place. Its really urgent for me.

    Thanks in advance.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,345

    Smile Re: Problem in sending SMS

    Hello Sylvia,

    Sorry again. I don't know about VB discussion boards, precisely.

    But i have something for u.
    http://www.codeguru.com/forum/forumdisplay.php?f=4

    Anyways why don't u google for the same?
    You shall definitely get something out from that.

    All the best.
    Regards.
    Kiran.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    5

    Re: Problem in sending SMS

    I have registered in the forum u have given.Thanks for the help in time.


    Thanks a lot

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-10, 13:19
  2. N91 SMS sending problem
    By markmaya in forum General Messaging
    Replies: 17
    Last Post: 2007-10-01, 18:05
  3. problem when sending sms..from the midlet
    By lakshmanraob in forum Mobile Java General
    Replies: 1
    Last Post: 2005-09-22, 15:09
  4. Problem - Sending SMS with Java WMA
    By Geodonis in forum General Messaging
    Replies: 0
    Last Post: 2005-02-01, 11:57
  5. CSendAs / SMS Sending
    By jimdeal in forum Symbian
    Replies: 1
    Last Post: 2002-09-04, 15:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×