Set up

Compiling

Run the following commands

gem 

Follow all the steps for signin in. Once completed, run the following

gem build gettive_mailer.gemspec

This will create a file with its name in the following form gettive_mailer-.gem. Push that file to ruygems repository using the command shown below;

gem push gettive_mailer<VERSION>.gem

Setting up this Gem in your project

Add the following to your GemFile

gem "gettive_mailer"

Afterward, run bundle install to have it installed

Create gettive_mailer.rb inside the initializers directory, and add this; it will be loaded when the server is started

GettiveMailer.configure do |config|
    config.api_key = <Your API Key>
end

In your prereferred environment (Available in config/environments/), set gettive_mailer, as your chosen adaptor for sending emails

  config.action_mailer.delivery_method = :gettive_mailer

You should now be good to go