/ Published in: Ruby
This technical tip shows how developers can convert email messages to other formats like EML, MSG & MHT in cloud using ruby language.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
require 'path/to/lib/asposecloudsdk' app_sid = '****' app_key = '****' Aspose::Cloud::Common::AsposeApp.app_key = app_key Aspose::Cloud::Common::AsposeApp.app_sid = app_sid Aspose::Cloud::Common::AsposeApp.output_location = '' Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1') # Create Object of folder class folder = Aspose::Cloud::AsposeStorage::Folder.new folder.upload_file 'path/to/storage/email_test.eml' # Create object of converter con_obj = Aspose::Cloud::Email::Converter.new('path/to/storage/email_test.eml') con_obj.convert('msg')