Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

MessageFormattingFlags.MailInfo is almost perfect. I need to add a feild.

$
0
0
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);
            }

Viewing all articles
Browse latest Browse all 1367

Latest Images

Trending Articles



Latest Images