Download and Configure Aspose.Email in Ruby
Contents
[
Hide
]
Download Required Libraries
Download required libraries mentioned below. These are the required for executing Aspose.Email Java for Ruby examples.
Download Examples from Social Coding Sites
Following releases of running examples are available to download on below mentioned social coding sites:
GitHub
Installing
It is very simple and easy to install Aspose.Email Java for Ruby gem, please follow these simple steps:
- Run following command.
$ gem install aspose-emailjava
- Download required Aspose.Email for Java Component from following link. https://downloads.aspose.com/total
- Create “jars” folder at root of the Aspose.Email Java for Ruby gem and copy downloaded component into it.
Using
Include the required files for working with the createnewemail example.
require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/aspose-emailjava'
include Asposeemailjava
include Asposeemailjava::CreateNewEmail
initialize_aspose_email
Let’s understand the above code.
- The first line makes sure that the aspose email is loaded and available.
- Include the files that are required to access the aspose email.
- Initialize the libraries. The aspose JAVA classes are loaded from the path provided in the aspose.yml file