HTML JPG EMAIL XML MSG
  Product Family
TIFF

Convert MSG to TIFF via C#

Convert MSG to TIFF without installing Microsoft® Outlook® or Thunderbird®.

Experience high-speed performance in email processing with Aspose.Email for .NET! It is a C# API that provides developers with a robust set of tools for handling email files without Outlook or Thunderbird installation, including the capability to convert between various formats. Among these capabilities, converting from .msg (Outlook Email Message) to .tiff (Tag Image) files is a feature that stands out, as it allows enhance compatibility by storing data in an image format that can be viewed using a wide range of software, making it more accessible. Moreover, converting emails to TIFF ensures that the visual layout, including any formatting and embedded objects, is maintained accurately for archival purposes.

Each email can be rendered into a multi-page TIFF to accommodate all content, ensuring that any metadata such as sender information and timestamps are also preserved. The end result is a collection of non-editable images that safeguard the integrity of the original messages and can be reliably used for a variety of professional and archival purposes.

The email-to-image-file conversion process with Aspose.Email for .NET is straightforward. The library presents an easy-to-use object model. Converting emails typically requires only a few lines of code, abstracting away the underlying file format parsing, MIME handling, encoding issues, etc. When you use Aspose.Email for .NET, you do not need to manually process any of these aspects. Instead, you write only the high-level code required to perform the task.

Enhance your performance with a comprehensive and easy-to-use API that simplifies complex email management tasks, such as sending, receiving, and processing emails, as well as converting between various email formats. This allows developers to efficiently integrate email functionality into their applications without delving into low-level details, thus significantly reducing development time and effort.

To leverage the power of the .NET API, perform one of the following actions:

  • Open NuGet package manager, search for Aspose.Email and install it on your device.

  • Use the following command from the Package Manager Console:


PM> Install-Package Aspose.Email

Steps to Convert MSG to TIFF via C#

.NET programmers can easily load & convert MSG files to TIFF in just a few lines of code.

  1. Load the MSG file using MapiMessage.Load.
  2. Create a new MailPrinter instance.
  3. Configure the MailPrinter format settings to display message headers and body using MessageFormattingFlags.MailInfo.
  4. Define the page layout units to centimeters.
  5. Set the formatting flag to automatically fit the width of the email content when printing to TIFF.
  6. Use the MailPrinter.Print method to output the email to a TIFF file, specifying the TIFF print format.

System Requirements

Before running the .NET conversion source code, make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, and PHP, VBScript, Delphi, C++ via COM Interop.
  • Development environment like Microsoft Visual Studio.
  • Aspose.EMAIL for .NET DLL referenced in your project.
 

This sample code shows MSG to TIFF C# Conversion

var msg = MapiMessage.Load("message.msg");
            
// Instantiate an instance of MailPrinter
var printer = new Printing.MailPrinter();

// Set MessageFormattingFlags to MailInfo to display the message headers and body
printer.FormattingFlags = Printing.MessageFormattingFlags.MailInfo;

// Set page layout for printing
printer.PageUnit = Printing.PrinterUnit.Cm;

// Auto-Fit a TIFF
printer.FormattingFlags = Aspose.Email.Printing.MessageFormattingFlags.AutoFitWidth;

// Print the email to a TIFF file
printer.Print(msg, dstTIFF, Aspose.Email.Printing.PrintFormat.Tiff);
 
  • Free App to Convert MSG to TIFF

    Other Supported Conversions

    You can also convert MSG into many other file formats including few listed below.

    MSG TO EML (Outlook Email Messages)
    MSG TO EMLX (Apple EMLX Format)
    MSG TO HTML (Hyper Text Markup Language)
    MSG TO ICS (iCalendar)
    MSG TO MBOX (Electronic Mail Messages)
    MSG TO MHTML (Web Page Archive Format)
    MSG TO OFT (Outlook Email Templates)
    MSG TO OST (Offline Storage Files)
    MSG TO PST (Outlook Personal Storage Files)
    MSG TO VCF (Virtual Card Format)