Sha256: 2e2ebf6a7e11235e78923e02b83caaeee56a4a95d0c6595d5ed73a8d885a666b

Contents?: true

Size: 1.09 KB

Versions: 1

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 MailDrop:

```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

1 entries across 1 versions & 1 rubygems

Version Path
mailbin-0.1.0 README.md