Skip to content
Frederike Ramin 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 = Mailer.new mailer.generic_email(hideRecipients, recipients, reply_to, "subject", "content").deliver_now
    • hideRecipients is a boolean. true will put the recipients in bcc, false into the to field
    • 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