Convert Mail files With Total Mail ConverterX and Python

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 Python:

import win32com.client
import os.path

c = win32com.client.Dispatch("MailConverter.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.

Related topics