HTML JPG EMAIL XML EML
  Product Family
TIFF

Convert EML to TIFF via C#

Convert EML to TIFF without Microsoft® Outlook® or Thunderbird® dependencies.

Convert EML to TIFF using C#

Developers looking to convert an EML file to TIFF format will appreciate the functionality of the powerful .NET API provided by Aspose.Email. The library simplifies the process of EML to TIFF conversion which empowers the users of email applications with the means for archiving, compliance, visual representation, and integration with document management systems. Designed for .NET developers, it allows them to work with email messages without requiring Microsoft Outlook or any other office automation software. It provides a range of features for creating, reading, and manipulating email messages (including EML, MSG, MHT formats) and performing complex tasks such as managing mailboxes, handling attachments, and interacting with email protocols like POP3, IMAP, and SMTP for sending and receiving emails.

To leverage the power of the .NET API, you can choose to 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 EML to TIFF via C#

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

  1. Load source EML file using MailMessage.Load.
  2. Instantiate MailPrinter.
  3. Configure formatting.
  4. Set page layout.
  5. Enable Auto-Fit for TIFF.
  6. Print email to TIFF.

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, and PHP, VBScript, Delphi, C++ via COM Interop.
  • Development environment like Microsoft Visual Studio.
  • Aspose.EMAIL for .NET DLL referenced in your project.

Note: .NET Core doesn’t support this type of conversion.

 

A sample code showing EML to TIFF Conversion in C#

var message = MailMessage.Load("message.eml");
            
// 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(message, dstTIFF, Aspose.Email.Printing.PrintFormat.Tiff);
 
  • Free App to Convert EML to TIFF

    Other Supported Conversions

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

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