4
4

More than 5 years have passed since last update.

railsのmailcatcherをvirtual boxで使う

Last updated at Posted at 2013-11-20

インストール

gem install mailcatcher

起動

mailcatcher --http-ip=0.0.0.0

railsの設定

development.rb
  config.action_mailer.smtp_settings = {
    :address    => localhost,
    :port       => 1025
  }

http://${virtualboxのIP}:1080
にアクセスして画面が開けば成功。

注意点

  • rails下のbundlerでインストールすると古いバージョンがインストールされてしまった。
  • --http-ip=0.0.0.0を付けないと[http://${virtualboxのIP}:1080]にアクセス出来ない
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4