diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-FB185094-9868-5CBB-9CDE-51D7AB029450.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-FB185094-9868-5CBB-9CDE-51D7AB029450.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,49 @@ + + + + + +Creating +Email Messages in Plain Text Format This tutorial explain the steps to create email messages in plain +text format. +
Procedure
    +
  1. Create an email entry +in the message store using the CImEmailOperation::CreateNewL() function, +which takes all the following nine parameters:

    static IMPORT_C CImEmailOperation *CreateNewL(TRequestStatus &aObserverRequestStatus, +CMsvSession &aMsvSession, TMsvId aDestination, TMsvId aSmtpServiceId, +TMsvPartList aPartList, const TMsvEmailTypeList &aMsvEmailTypeList, +TUid aMsgType, TInt aPriority, TBool aUsePlainTextStorage);

  2. +
  3. Set the TBool parameter +to ETrue.

  4. +
  5. Use the CImEmailOperation::ProgressL() method +to obtain the TMsvId parameter of the newly created email. +This is returned through a TPckgC <TMsvId > +descriptor.

  6. +
  7. Create a CMsvEntry object +using the TMsvId aMessageId parameter +of the newly created email.

  8. +
  9. Use the CMsvEntry object +to create a CImEmailMessage object.

  10. +
  11. Call the CImEmailMessage::OpenPlainBodyTextForWriteL() function +to get a new instance of CImPlainBodyText.

  12. +
  13. If there are more than +one chunk, use the StoreChunkL() function repeatedly to +store the body text in chunks.

  14. +
  15. When the message body +text is completely stored, call the CImPlainBodyText::CommitL() function +to complete the email creation operation.

  16. +
+
+Chunk Method +to Process Emails +Imap4Example: +An Email manager using IMAP4 and SMTP +Pop3Example: +An Email manager using POP3 and SMTP +
\ No newline at end of file