Skip to content
Alexander Löser edited this page Dec 15, 2016 · 9 revisions

Setup

  1. Install figaro gem via bundle install
  2. Run bundle exec figaro install
  3. Open config/application.yml and add email credentials from slack channel #general

For Heroku deployment additionally execute figaro heroku:set -e production

See also: https://github.com/laserlemon/figaro

Usage

  • To send a generic email call:
    Mailer.send_generic_email(hide_recipients, recipients, reply_to, "subject", "content")
    • hide_recipients is a boolean. true will send an email to the recipients one by one, false will send an email to all at once
    • recipients and reply_to can both be a single string of email addresses separated by commas or an array of email addresses (strings).