×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Email Notification

    Hi Folks,

    Can any one tell me how to capture Email arrival / sending events on S 60 2nd Edition FP1 and FP2?

    For S60 3rd KUidMsgTypeSMTP and KUidMsgTypePOP3 do the job but the same UIDs aren't available or don't seem to work on S60 2nd.

    Any help will be appreciated!
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: Email Notification

    Have you checked what kind-of events would you get when the email arrives ?, some logging might help, as well as showing the code that does not work might also give somebody some clues.

  3. #3
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: Email Notification

    Hey Yucca,

    Excited to see your reply!

    Well, here is my code snippet

    Code:
    void CSMSReceiver::HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* /*aArg3*/)
    {
    	CMsvEntrySelection* entries = NULL;
        TMsvId* entryID;
        
    	switch (aEvent)
    	{
    		case EMsvEntriesCreated: // Incoming SMS
    		{
    			entries = static_cast<CMsvEntrySelection*>(aArg1);
    			
    			if (entries)
    			{
    			    TInt count = entries->Count();
    
    			    // check each entry to see if we want to process it
    			    while (count--)
    			    {
    			    	// get the index entry ID
    			    	entryID = static_cast<TMsvId*>(aArg2);
    		    	
    			    	if((*entryID) == KMsvGlobalInBoxIndexEntryId)
    			    	{
    				    	TUid tUID;//
    			    		tUID = iSession->GetEntryL( entries->At( count ) )->Entry().iMtm;//
    	
    			    		if(tUID == KUidMsgTypeSMS ) // SMS Received
    			    		{
    					    	VASMonitor* vasMonitor = VASMonitor :: GetInstance();
    				    		vasMonitor->GenerateSMSReceivedEvent();
    			    		}
    			    		else if( (tUID == KUidMsgTypeSMTP) || (tUID == KUidMsgTypePOP3) || (tUID == KUidMsgTypeIMAP4) ) // Email Received
    			    		{
    					    	VASMonitor* vasMonitor = VASMonitor :: GetInstance();
    					    	vasMonitor->GenerateEmailReceivedEvent();
    			    		}
    			    		else if(tUID.iUid == KUidMsgTypeMMS) // MMS Received
    			    		{
    				    		VASMonitor* vasMonitor = VASMonitor :: GetInstance();
    					    	vasMonitor->GenerateMMSReceivedEvent();
    			    		}
    			    		else
    			    		{
    			    			//Handle some errors here
    			    		}
    			    	}
    			    }
    			}
    		}
    The UIDs like KUidMsgTypeSMTP are available on S 60 2nd edition as well (checked twice!).

    I have no idea why the code that works on S60 3rd and UIQ 3.0 without a hitch doesn't work on S60 2nd.

    P.S: Yucca, please see this thread as well.
    Please help me out.
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

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

    Re: Email Notification

    I would start figuring it out, bu logging all events into a file, and seeing whether there are some other UIDs used within 2nd edition.

  5. #5
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: Email Notification

    Thanks man...I am counting on you!
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

Similar Threads

  1. Email notification in 7650/3650
    By ardf69 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-07-01, 06:15
  2. No email notification on subscribed threads
    By iulian_moldovan in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 5
    Last Post: 2006-09-20, 18:06
  3. Email notification on this forum
    By dpolyakov in forum Mobile Java General
    Replies: 0
    Last Post: 2004-01-30, 14:45
  4. Simple Email Notification
    By olivier_vox in forum Smart Messaging
    Replies: 0
    Last Post: 2003-06-19, 10:28
  5. simple/special email notification
    By aharonalon in forum Smart Messaging
    Replies: 1
    Last Post: 2003-03-24, 12:12

Posting Permissions

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