×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2007
    Location
    chennai,india
    Posts
    82

    Arrow how to Avoid conformation before sending sms

    Hi

    i am sending sms using RSendAs and RSendAsMessage class's i can send msg but Whenever i sent My application asks user conformation

    "Application "unknown" is rtequesting to send text message"

    i added Networkservice ,read&writedevice data cababilities And
    sendas2.lib
    thanx n regards
    jeyaprakash.c

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: how to Avoid conformation before sending sms

    Please Check SendAs Example V2 in the documentation.

    You would need following caps
    CAPABILITY ReadDeviceData WriteDevicedata ProtServ NetworkControl NetworkServices LocalServices ReaduserData WriteUserData
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

  3. #3
    Regular Contributor
    Join Date
    Apr 2007
    Location
    chennai,india
    Posts
    82

    Arrow Re: how to Avoid conformation before sending sms

    Hi
    I Set all cababillities as SendAs Example V2 mmp It Do not work for me it promting always.......

    My mmp file
    Code:
    /*
    ============================================================================
     Name        : sms.mmp
     Author      : jeyaprakash
     Copyright   : Your copyright notice
     Description : This is the project specification file for sms.
    ============================================================================
    */
    
    TARGET            sms.exe
    TARGETTYPE        exe
    UID		      0xE20E4FB0
    
    SOURCEPATH        ..\src
    SOURCE            sms.cpp
    SOURCE            smsApplication.cpp
    SOURCE            smsAppView.cpp
    SOURCE            smsAppUi.cpp
    SOURCE            smsDocument.cpp
    SOURCE            DevInfoUtility.cpp
    
    SOURCEPATH        ..\data
    
    START RESOURCE    sms.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE
    
    START RESOURCE    sms_reg.rss
    TARGETPATH 	  \private\10003a3f\apps
    END //RESOURCE
    
    
    
    USERINCLUDE       ..\inc
    
    SYSTEMINCLUDE     \epoc32\include
    LIBRARY  	  msgs.lib 
    LIBRARY  	  etext.lib bifu.lib biut.lib BioDB.lib
    LIBRARY           euser.lib
    LIBRARY           apparc.lib
    LIBRARY           cone.lib
    LIBRARY           eikcore.lib
    LIBRARY           avkon.lib
    LIBRARY           commonengine.lib
    LIBRARY		  efsrv.lib 
    LIBRARY           estor.lib
    LIBRARY 	  sendas2.lib // sms
    LIBRARY 	  etel3rdparty.lib //telephony api
    
    LANG SC
    
    VENDORID	  	  0
    CAPABILITY  AllFile ReadDeviceData WriteDevicedata ProtServ NetworkControl NetworkServices LocalServices ReaduserData WriteUserData Location
    // End of File

    And My sms code is
    Code:
      RSendAs sendAs;
    	sendAs.Connect();
    	CleanupClosePushL(sendAs);
    
    	RSendAsMessage sendAsMessage;
    	sendAsMessage.CreateL(sendAs, KSenduiMtmSmsUid);
    	CleanupClosePushL(sendAsMessage);
            TBuf<128> SMSText,PhoneNumber;
            SMSText.Copy(_L("Test Message"));
            PhoneNumber.Copy(_L("9894562987")); 
            TRequestStatus iStatus;
    	// prepare the message
    	sendAsMessage.AddRecipientL(PhoneNumber, RSendAsMessage::ESendAsRecipientTo);///KTelNumberAddress is any tel number of urs
    	sendAsMessage.SetBodyTextL(SMSText);//iSMSMessage any text that u wanna send
    	// send the message
        
    	sendAsMessage.SendMessageAndCloseL();
    	// sendAsMessage (already closed)
    	// Cleanup
    	CleanupStack::Pop(&sendAsMessage);
    	CleanupStack::PopAndDestroy(&sendAs);
    thanx n regards
    jeyaprakash.c

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,142

    Re: how to Avoid conformation before sending sms

    You could always try other ways, for example MTM at least never prompts any notes. For more information on sending SMS with MTM APIs, you could check Wiki exmaples.

Similar Threads

  1. sending multiple sms in 6210
    By Deepa msc in forum Mobile Java General
    Replies: 6
    Last Post: 2008-09-02, 13:39
  2. Problem in sending SMS using VB
    By sylvia in forum General Messaging
    Replies: 0
    Last Post: 2006-09-27, 07:38
  3. Problem in sending SMS
    By sylvia in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2006-09-27, 07:06
  4. Error sending SMS
    By jorge_c in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-07, 11:53
  5. nokia 30: no response on sending SMS
    By itsmeamar in forum Nokia M2M
    Replies: 2
    Last Post: 2003-05-26, 10:20

Posting Permissions

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