Sha256: 18b8212ec7776a8252d2b25472baa69be4b142b82d2a2c830ceee8afc4e6d9ef

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

# 📬 Mailbin
Preview emails sent from ActionMailer in the browser.

Mailbin writes emails to `tmp/mailbin` for easy access and testing.

## 📦 Installation

Add Mailbin to your Gemfile:

```ruby
bundle add "mailbin"
```

Configure Rails to send emails to Mailbin:

```ruby
# config/environments/development.rb
config.action_mailer.delivery_method = :mailbin
config.action_mailer.perform_deliveries = true
```

Add the routes to view emails with MailBin:

```ruby
Rails.application.routes.draw do
  mount Mailbin::Engine => :mailbin if Rails.env.development?
end
```

## Usage

Open http://localhost:3000/mailbin to view your emails in development.

## Contributing

If you have an issue you'd like to submit, please do so using the issue tracker in GitHub. In order for us to help you in the best way possible, please be as detailed as you can.

If you'd like to open a PR please make sure the following things pass:

```bash
bin/rails db:test:prepare
bin/rails test
bin/rubocop -A
```

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mailbin-1.0.0 README.md
mailbin-0.1.1 README.md