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

Note: NOT YET IN DEV. #55

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(hideRecipients, recipients, reply_to, "subject", "content")
    • hideRecipients 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).
Clone this wiki locally