messagingappbase/sendui/genericmtmplugin/src/genericmtmplugin.cpp
branchRCL_3
changeset 16 e00582ce7ecd
parent 14 c6838af47512
child 22 1367103c24e2
--- a/messagingappbase/sendui/genericmtmplugin/src/genericmtmplugin.cpp	Wed Apr 14 15:53:21 2010 +0300
+++ b/messagingappbase/sendui/genericmtmplugin/src/genericmtmplugin.cpp	Tue Apr 27 16:33:37 2010 +0300
@@ -210,6 +210,9 @@
     		!onlineSharing )
     		{
     		// cancel pressed on "selecta email account" query
+    	    // OR SMTP UID is provided,  
+    	    // but no cmail mailbox is not configured, shonw note to user to
+    	    // configured mailbox and return from here.
     		return;
     		}
     	}
@@ -1262,9 +1265,19 @@
 				}
 			
 			if( service == KMsvUnknownServiceIndexEntryId )
-				{
-				service = EmailDefaultServiceL();		        
-				}
+			    {
+			    //donot launch wizard
+			    // show info note to user to configured
+			    //mailbox from mail app.
+			    CAknGlobalNote* note = CAknGlobalNote::NewL();
+			    CleanupStack::PushL( note );
+			    HBufC* text = NULL;
+			    text = StringLoader::LoadLC( R_SENDUI_SETTINGS_EMAIL_NOT_OK, &iCoeEnv );
+			    note->ShowNoteL( EAknGlobalErrorNote, *text );
+			    CleanupStack::PopAndDestroy( 2, note ); // note, stringLoader
+			    aContinue = EFalse;
+			    return KMsvUnknownServiceIndexEntryId;
+			    }
             }
         else
             {