Skip to content
This repository has been archived by the owner on Feb 9, 2018. It is now read-only.

Latest commit

 

History

History
17 lines (14 loc) · 497 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 497 Bytes

Mailfire

(yes, its a bad name)

For when you don't want to send emails for real, but still want an easy way to sanity check the content (i.e. on dev)
ActionMailer::Base.add_delivery_method :campfire,
  Mailfire::TextToRoom,
  account: 'youraccount',
  token: '9s8d7fasfdasdfasdfsdfnskldf......',
  room: 'mail'

if Rails.env.development?
  ActionMailer::Base.delivery_method = :campfire
end

And your email to, from, subject and body will be 'delivered' to your campfire room