Author |
|
adam.kozovo Newbie
Joined: 30 June 2023
Online Status: Offline Posts: 19
|
Posted: 17 July 2023 at 1:02am | IP Logged
|
|
|
Hello
I found that to process in-memory you offer both MemoryStream and Byte() for MailMessage
Although it's much more usual for SDKs to offer MemoryStream, but please let us know if in action you found which one to be more efficient when loading a single mail message and keep it in memory for some time?
Also, while all MailMessage functions support Byte() but these 4 methods are not offering Byte() overload support:
MsgToMailMessage/MailMessagetoMsg/MsgtoEml/EmltoMsg
Thank you in advance
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 17 July 2023 at 11:15am | IP Logged
|
|
|
Hello,
Loading message from byte array is more efficient. Overload which uses Stream (not MemoryStream, BTW) internally loads it into a byte array anyway.
Methods which process Outlook MSG support Stream only and operate differently, they don't read (or write) the message into a byte array internally.
Regards,
Alex
|
Back to Top |
|
|