This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 283
Using MailCatcher
Tim Morgan edited this page Sep 30, 2015
·
2 revisions
Testing text and html email while hacking on OneBody is easy... just use MailCatcher!
Depending on how you set up OneBody for development, follow the instructions in one of the sections below:
vagrant ssh
- Add
SetEnv MAILCATCHER true
to your apache config file in/etc/apache2/sites-available/onebody.conf
service apache2 restart
cd /vagrant
gem install mailcatcher
- Add
config.vm.network :forwarded_port, host: 1080, guest: 1080
to yourVagrantfile.local
file (create the file if it doesn't exist), then restart the vm withvagrant reload
. - Run
mailcatcher --ip=0.0.0.0
inside the vm. - View MailCatcher in a web browser http://localhost:1080
- Send email from OneBody and see it in MailCatcher!
gem install mailcatcher
mailcatcher
- Set the environment variable when starting Rails:
MAILCATCHER=true rails server
- View MailCatcher in a web browser http://localhost:1080
- Send email from OneBody and see it in MailCatcher!