Convert Mail Files With Total Mail Converter ProX and Ruby

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

If you need examples on other languages please contact us. We will create any example specially for you.

Related topics