[IOS ]archiving MCOMessageBuilder objects

90 Views Asked by At

To support resending of sent failed mails and viewing email body of mails present in outbox, I am planning to persist the MCOMessageBuilder object in sqlite. Since, MCOMessageBuilder is not Nscoding compliant. How to store MCOMessageBuilder in db ?

1

There are 1 best solutions below

0
Dinh Viêt Hoà On BEST ANSWER

You can get the data of the MCOMessageBuilder and using -[MCOMessageBuilder data].

  • To resend it, use -[MCOSMTPSession sendOperationWithData:].
  • To view it, use +[MCOMessageParser messageParserWithData:].