I am utilizing the .msg to tif feature, THANK YOU, however I am in need of printing the attachment name along with the To: From: etc. I can get the string name of the attachment with MailMessage.Attachment however I am not sure how to add that to the printed header of MessageFormattingFlags.MailInfo. Do I need to create a new MessageFormattingFlags that includes the things I want? If so how do i build that object? Thanks.
C#
foreach (MailMessage mailMessage in _MailMessageList)
{
MailPrinter printer = new MailPrinter();
printer.FormattingFlags = MessageFormattingFlags.MailInfo;
printer.Print(mailMessage, "C:\\" + mailMessage.Subject + ".tif", PrintFormat.Tiff);
}
C#
foreach (MailMessage mailMessage in _MailMessageList)
{
MailPrinter printer = new MailPrinter();
printer.FormattingFlags = MessageFormattingFlags.MailInfo;
printer.Print(mailMessage, "C:\\" + mailMessage.Subject + ".tif", PrintFormat.Tiff);
}