I am using Aspose.Network (Ver: 3.8.0.0). I am using the TemplateEngine to "merge" a MailMessage and DataTable together. I works great !!!!. The replacement tokens in the subject line and body of the message are being replaced just fine. (Ex: Token: #Firstname# being replaced with Don).
My problem. I need to create a custom header with a value from the DataTable, but it doesn't appear the TemplateEngine does token replace for Headers.
I would like the TemplateEngine to do token replace in the headers.
Example Code:
MailMessage message = new MailMessage();
message.Headers.Add("EmailEventID","#EmailEventID#");
TemplateEngine engine = new TemplateEngine(message);
MailMessageCollection messages;
messages = engine.Instantiate(<<>>);
When I review the messages in the message collection, the Header EmailEventID has #EmailEventID# as it's value instead of the value 12345679 from the DataTable.
Suggestion for Aspose.....Please enable token replacements in the Header.