Hi to all,

I am trying to Add attachment to Email message.
I am using that code for adding the attachment:

Code:
		TFileName attachmentFile( _L("c:\\DATA\\image\\birthday.jpg") );
		RFs iFs; 
		RFile fileHandle;
		 TBufC8<20> mimeType = _L8( "image/jpeg" );
		 TUint charset = 0; // no character set needed 
		 iFs.Connect();
		 fileHandle.Open( iFs, attachmentFile,EFileShareReadersOnly | EFileRead );
	 	MMsvAttachmentManager* attMngr = &(store->AttachmentManagerL());

	 	TInt myCo=attMngr->AttachmentCount();
	 	CMsvAttachment* attaInfo = CMsvAttachment::NewL( CMsvAttachment::EMsvFile );
//		CleanupStack::PushL( attaInfo );
	 	attaInfo->SetMimeTypeL(mimeType);
	 	
	 	attMngr->AddAttachmentL(attachmentFile,attaInfo,waiter->iStatus);
		waiter->StartAndWait();
	 	myCo=attMngr->AttachmentCount(); //checked if add the attchemnet.
		// Store the changes permanently
		store->CommitL();
Am I missing something ???

tnx to all,
Dvir.