AheadIO / elastic_email_rails

Rails Action Mailer adapter for Elastic Email

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elastic_email_rails

elastic_email_rails is an Action Mailer adapter for using Elastic Email in Rails apps. It uses the Elastic Email HTTP API internally.

Installing

In your Gemfile

gem 'elastic_email_rails'

Usage

To configure your Elastic Email credentials place the following code in the corresponding environment file (development.rb, production.rb...)

config.action_mailer.delivery_method = :elastic_email
config.action_mailer.elastic_email_settings = {
		api_key: '<elastic email api key>',
		username: '<elastic email username>'
}

Now you can send emails using plain Action Mailer:

email = mail from: 'sender@email.com', to: 'receiver@email.com', subject: 'this is an email'

TODO

  • Upload attachments;
  • CC and CCO;
  • Channel.

This gem was based on mailgun_rails.

About

Rails Action Mailer adapter for Elastic Email

License:MIT License


Languages

Language:Ruby 72.8%Language:HTML 23.7%Language:JavaScript 1.8%Language:CSS 1.6%