Hello,
No idea if you have some Global properties to set at main form’s initialize to globally apply some settings to all Aspose functions, but adding a Global.XMailer property would be great, so all message objects by default will have it when saving messages!
If there’s already another approach for this task, please let me know how to apply my default XMailer property when saving from storages as mentioned above?
Aspose.Email does not set such global properties. However, all APIs have default values. You can write your own class that set the default values of SaveOptions according to your requirement and use them when saving messages.
Hi,
I’m asking that because sometimes we will save email messages without creating any kind of email message object instance, ie:
When reading Pst/Olm/Mboxrd/Tgz…
OlmStorage.ExtractMapiMessage(MyMSG).Save(path)
This allows me direct saving to disk, now how to add XMailer (always or if XMailer is absent from message)
Perhaps save to stream, modify XMailer and then save to disk, imagine a heavy 20GB storage file and this extra mid-stage processing.
Or if there’s already a way or workaround for this, please let me know?