Logo

arrow2 File Converters

arrow2 Forensic

arrow2 TIFF and PDF apps

arrow2 Freeware

Total Mail Converter ProX

Convert Mail files With Total Mail ConverterProX and Python

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

 

  Example Python:

import win32com.client
import os.path

c = win32com.client.Dispatch("MailConverterPro.MailConverterX")

src="C:\\test\\test.eml";
dest="C:\\test\\test.tiff";

c.convert(src, dest, "-c TIFF -log c:\\test\\Mail.log");

if not os.path.exists(file_path):
  print(c.ErrorMessage)
If you need examples on other languages please contact us. We will create any example specially for you.

Download

Examples of Total Mail Converter Pro X

Convert Mail files With TotalMailConverterProX and .NET

string src="C:\\test\\Source.eml";
string dest="C:\\test\\Dest.PDF";

MailConverterX Cnv = new MailConverterX();
Cnv.Convert(src, dest, "-c PDF -log c:\\test\\Mail.log");

MessageBox.Show("Convert complete!");

Download .NET Mail Covnerter Pro example

Convert Mail Files On Web Servers With Total Mail Converter ProX

dim C
Set C=CreateObject("MailConverterPro.MailConverterX")
C.Convert "c:\test\source.eml", "c:\test\dest.pdf", "-cPDF -log c:\mail.log"
Response.Write C.ErrorMessage
set C = nothing
Example2 ASP: directly stream the resulting PDF
dim C
Set C=CreateObject("MailConverterPro.MailConverterX")
Response.Clear
Response.AddHeader "Content-Type", "binary/octet-stream"
Rresponse.AddHeader "Content-Disposition", "attachment; filename=test.pdf"
Response.BinaryWrite c.ConvertToStream("C:\www\ASP\Source.eml", "C:\www\ASP", "-cpdf  -log c:\html.log")
set C = nothing
Some more samples in C# specifically for ASP.net. If you need examples on other languages please contact us. We will create any example specially for you.

Convert MSG & EML Files On Web Servers With Total Mail Converter ProX

Example PHP:
$src="C:\\test\\test.msg";
$dest="C:\\test\\test.pdf";
if (file_exists($dest)) unlink($dest);
$c= new COM("MailConverterPro.MailConverterX");
$c->convert($src,$dest, "-c pdf -log c:\\Mail.log");
if (file_exists($dest)) echo "OK"; else echo "fail:".$c->ErrorMessage;

Convert Mail Files With Total Mail Converter ProX and Ruby

require 'win32ole'
c = WIN32OLE.new('MailConverterPro.MailConverterX')

src="C:\\test\\test.pdf";
dest="C:\\test\\test.tiff";

c.convert(src,dest, "-c TIFF -log c:\\test\\Mail.log");

if not File.exist?(dest)
  puts c.ErrorMessage
end

Convert Mail files With Total Mail ConverterProX and Python

import win32com.client
import os.path

c = win32com.client.Dispatch("MailConverterPro.MailConverterX")

src="C:\\test\\test.eml";
dest="C:\\test\\test.tiff";

c.convert(src, dest, "-c TIFF -log c:\\test\\Mail.log");

if not os.path.exists(file_path):
  print(c.ErrorMessage)

Convert Mail files With Pascal and Total Mail Converter ProX

uses Dialogs, Vcl.OleAuto;

var
  c: OleVariant;
begin
  c:=CreateOleObject('MailConverterPro.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;

Convert Mail Files On Web Servers With Total Mail Converter ProX

var c = new ActiveXObject("MailConverterPro.MailConverterX");
c.Convert("C:\\test\\source.msg", "C:\\test\\dest.pdf", "-c PDF");
if (c.ErrorMessage!="")
  alert(c.ErrorMessage)

Convert Mail files With Total Mail Converter ProX and Perl

use Win32::OLE;

my $src="C:\\test\\test.eml";
my $dest="C:\\test\\test.tiff";

my $c = CreateObject Win32::OLE 'MailConverterPro.MailConverterX';
$c->convert($src,$dest, "-c TIFF  -log c:\\test\\Mail.log");
print $c->ErrorMessage if -e $dest;
Support
Get all CoolUtils products
for $99 only
read more

  (you save up to $500)


Total Mail Converter ProX Preview1
Total Mail Converter ProX Preview2
Total Mail Converter ProX Preview3

Coolutils.com

Latest News

  • In the new Total PDF Converter , the conversion from xps\oxps to docx was significantly improved.
  • Online converter now supports Biological Formats spe; nd2; pds; lsm; sif; fpf; vff; nmr; zvi; dm3; isac; afm; ser; mri.
  • New Total Excel Converter adds the ability to Export hidden sheets.
  • New Total Image Converter has improved working with Open Office images (.fh7 - 11).
  • After the update, our converters use a new data encryption standard: AES 128 and 256 bits.
  • The updated Total PDF Converter has improved / accelerated work with large files of 10,000 or more pages.

Newsletter Subscribe

No worries, we don't spam.


© 2020. All rights reserved. CoolUtils File Converters

Cards