Unofficial Brevo Action Mailer adapter

brevo_rails is an Action Mailer adapter for using Brevo in Ruby on Rails application. It uses Brevo gem to make API request to Brevo service.

Installation

In your Gemfile

gem 'brevo-rails'

Usage

Add these lines in your configuration file.

config.action_mailer.delivery_method = :brevo
config.action_mailer.brevo_settings = {
  api_key: ENV.fetch('BREVO_API_KEY'),
}

Send an email with tags

def method
    mail(
        from: '[email protected]',
        to: '[email protected]',
        subject: 'Hello there!',
        tags: ['tag1', 'tag2'],
    )
end