Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/excid3/mailbin
Record and view Rails ActionMailer emails sent in development
https://github.com/excid3/mailbin
Last synced: about 1 month ago
JSON representation
Record and view Rails ActionMailer emails sent in development
- Host: GitHub
- URL: https://github.com/excid3/mailbin
- Owner: excid3
- License: mit
- Created: 2024-07-29T19:31:22.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T20:34:43.000Z (about 1 month ago)
- Last Synced: 2024-08-06T23:52:25.661Z (about 1 month ago)
- Language: Ruby
- Size: 77.1 KB
- Stars: 22
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# 📬 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).