×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    165

    How can I Add attachment to Email?

    hi to all,

    I am using that example ..
    http://www.symbian.com/developer/tec..._overview.html

    How can I add attachment to the mail?


    tnx,
    Dvir.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How can I Add attachment to Email?

    If you check CMsvStore, it provides an interface for managing attachments.

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    165

    Re: How can I Add attachment to Email?

    Is that like Sending MMS (the CMsvStore) ?

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    165

    Re: How can I Add attachment to Email?

    hi
    Code:
    		TFileName attachmentFile( _L("c:\\DATA\\image\\birthday.jpg") );
    		RFs iFs; 
    		RFile fileHandle;
    		 TBufC8<20> mimeType = _L8( "image/jpeg" );
    		 TUint charset = 0; 
    		 iFs.Connect();
    		 fileHandle.Open( iFs, attachmentFile,EFileShareReadersOnly | EFileRead );
    
    	 	MMsvAttachmentManager* attMngr = &(store->AttachmentManagerL());
    		CMsvAttachment* attaInfo = CMsvAttachment::NewL( CMsvAttachment::EMsvFile );
    		CleanupStack::PushL( attaInfo );
    
    		CMessAsyncWaiter* waiter2 = CMessAsyncWaiter::NewL();
    		CleanupStack::PushL(waiter);
    
    		attMngr->AddAttachmentL(fileHandle,attaInfo,waiter2->iStatus);

    Is that the way to add attachment to Email ???

    Please help me how can I do it ?

    tnx,

    Dvir.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How can I Add attachment to Email?

    What happened?

  6. #6
    Registered User
    Join Date
    Aug 2007
    Posts
    165

    Re: How can I Add attachment to Email?

    ------------------
    Nothing!
    ------------------


    There are to many method to do that I really confuse .
    cuz I did succeed to send MMS message but there the method completely different. (I used CreatedAttachment2L)
    There are to many functions... (AddAttachment / CreateAttachmentL / CreateAttachmentLink)

    It will make me happy if you could help me with snippet of working code.

    tnx,
    Dvir.
    Last edited by Dvirus; 2009-04-20 at 22:15.

Similar Threads

  1. Replies: 0
    Last Post: 2006-02-07, 14:59
  2. Replies: 0
    Last Post: 2006-02-02, 13:50
  3. Email over SMS
    By arun95 in forum General Messaging
    Replies: 1
    Last Post: 2004-02-26, 13:48
  4. Problems send email with my 3650
    By davideikeland in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-21, 00:05
  5. Nokia EMail POP3 header issue
    By McHale in forum General Development Questions
    Replies: 2
    Last Post: 2004-01-10, 08:49

Posting Permissions

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