• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Notes to Self

  • Aviation Weather from NOAA Plugin
    • KZZV
    • Bad Shortcode
    • Simple Metar
  • Meetings

Mark Chouinard / January 29, 2015

My Journey Setting up Mailcatcher with VVV

http://mailcatcher.me/

sudo gem install mailcatcher  – won’t run without sudo

2015-01-27_08-57-00
Google brought me to Faison’s issue: https://github.com/sj26/mailcatcher/issues/144

So I Install RVM

gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
sudo curl -sSL https://get.rvm.io | bash
rvm install 2.1.2

Exit iTerm2 and open new tab

rvm use 2.1.2

RVM is not a function, selecting rubies with ‘rvm use …’ will not work.

source ~/.profile
rvm use 2.1.2

Works as expected

sudo gem install mailcatcher

!nope
Another Google search: https://github.com/sj26/mailcatcher/issues/111

sudo apt-get install ruby1.9.1-dev
sudo vi /etc/php5/fpm/php.ini

By default, SMTP runs on 127.0.0.1 and port 25.

We need to change this to work with VVV

sudo vi /etc/php5/fpm/php.ini

change SMTP = localhost 

change smtp_port = 25

2015-01-29_12-23-55

 

sendmail_path

sudo service php5-fpm restart

Somehow forgot that mailcatcher installation had not been successful, so I tried to run it.

mailcatcher
vagrant@vvv:/srv/www/machouinardcom/htdocs$ mailcatcher
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find mailcatcher (>= 0) amongst [bundler-1.7.12, bundler-unload-1.0.2, executable-hooks-1.3.2, gem-wrappers-1.2.7, rubygems-bundler-1.4.4, rvm-1.11.3.9] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/bin/mailcatcher:22:in `'

Decided to try without sudo this time, reason unknown.

gem install mailcatcher

(greatsuccess)
Now start mailcatcher and tell it to run on the correct IP.

mailcatcher --ip 192.168.50.4

local.wordpress-trunk.dev:1080

 

2015-01-29_12-02-52

Install WP Mail SMTP plugin and configure SMTP Host and Port for VVV

2015-01-28_20-51-23

 

Filed Under: Development Tagged With: mailcatcher, smtp, VVV

Primary Sidebar

Post Archives

  • June 2024
  • December 2022
  • July 2022
  • December 2021
  • October 2021
  • June 2021
  • February 2021
  • October 2020
  • September 2020
  • August 2020
  • March 2020
  • February 2020
  • December 2019
  • September 2019
  • June 2017
  • May 2016
  • April 2016
  • March 2016
  • September 2015
  • August 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • January 2013
  • December 2012
  • January 2011

Footer

Copyright © 2025 · machouinard · Log in