Convert Mail files With Pascal and Total Mail ConverterX

Please, download and install Total Mail ConverterX. Using the sample code below you will be able to convert Mail to PDF, DOC, TXT, etc.

 

  Example Pascal:

uses Dialogs, Vcl.OleAuto;

var
  c: OleVariant;
begin
  c:=CreateOleObject('MailConverter.MailConverterX');
  C.Convert('c:\test\source.eml', 'c:\test\dest.tiff', '-c TIFF -log c:\test\Mail.log');
  IF c.ErrorMessage Then
    ShowMessage(c.ErrorMessage);
end;
If you need examples on other languages please contact us. We will create any example specially for you.