Vagrant Box not sending Emails


#1

Hello,

I installed the B2B Demo Shop via the devvm Vagrant Box and I cannot receive E-Mails. When I try to create a new customer and regardless of the password token or the forgotten password option, I won’t get any Emails from the system.

How can I get the mail function to work?

Best regards
Alex


#2

Hi Alex,

by default b2b-demoshop is not sending emails to real mail addresses.
If you want just to check that emails are actually sent, you need to install a mailcatcher application that gets all mails sent by the system.

It should already be installed in the VM.
Try go to " [zed_address]:1080/" (like http://zed.de.suite-b2b-internal.local:1080/) in the browser and see the mailcatcher. If any mailing will be triggered in the system, the messages should appear in the inbox of the mailcatcher.

If you for some reason do not have it installed, please check the installation steps here:

Steps:

Inside the VM install the tool with

sudo -i apt-get install gcc libsqlite3-dev

sudo gem install mailcatcher

During the installation it can be asked to install something else beforehand. Install it and repeat the installation of the mailcatcher.

start the mailcathcer with

mailcatcher --ip= 0.0 . 0.0

You can check that the mailcatcher is up and running with this command

ps -aux | grep mailcatcher

It should show exactly two entries like:

vagrant 2785 0.0 0.8 118148 27888 ? Sl 09 : 10 0 : 00 /usr/bin/ruby2. 1 /usr/local/bin/mailcatcher --ip= 0.0 . 0.0

vagrant 2834 0.0 0.0 12752 2100 pts/ 0 S+ 09 : 11 0 : 00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn mailcatcher

Now you can go to

[zed_address]:1080/ (like http://zed.de.suite-b2b-internal.local:1080/) in the browser and see the mailcatcher. If any mailing will be triggered in the system, the messages should appear in the inbox of the mailcatcher.

Best regards,
Anastasia