Return to Snippet

Revision: 66626
at June 10, 2014 17:28 by johansonkatherine


Initial Code
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')

Initial URL
http://www.aspose.com/blogs/aspose-products/aspose-for-cloud-apis/archive/2014/05/28/work-with-email-messages-and-attachments-in-ruby-using-aspose-for-cloud.html

Initial Description
This technical tip shows how developers can convert email messages to other formats like EML, MSG & MHT in cloud using ruby language.

Initial Title
Convert Email to Other Formats using Cloud API in Ruby

Initial Tags
email, ruby, api, convert

Initial Language
Ruby