AMP AMP

How to Install Mailcatcher in Windows 10

Installation Of Mailcatcher On Windows 10

Mailcatcher is a program you can use to test sending email. It gives you the ability to inspect sent emails and their headers. It is a simple SMTP server that can receive emails. It also gives you a nice web interface for inspecting sent emails. This Tutorial covers the installation of Mailcatcher In Windows10

Requirements for Mailcatcher:

Ruby

Installation procedure

Accept the License agreement snap1 Select the required path snap2 Select the components to be installed The installation is in process The installation is completed

Select the required components

_____       _           _____           _        _ _         ___
|  __ \     | |         |_   _|         | |      | | |       |__ \
| |__) |   _| |__  _   _  | |  _ __  ___| |_ __ _| | | ___ _ __ ) |
|  _  / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | |  __/ | / /_
|_|  \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
                    __/ |           _
                   |___/          _|_ _  __   | | o __  _| _     _
                                   | (_) |    |^| | | |(_|(_)\^/_>

   1 - MSYS2 base installation
   2 - MSYS2 system update (optional)
   3 - MSYS2 and MINGW development toolchain
Install the MSYS2 components by enter the value 1
Which components shall be installed? If unsure press ENTER [1,2,3] 1

> sh -lc true
'C:\Windows\system32\drivers\etc\hosts' -> '/etc/hosts'
'C:\Windows\system32\drivers\etc\protocol' -> '/etc/protocols'
'C:\Windows\system32\drivers\etc\services' -> '/etc/services'
'C:\Windows\system32\drivers\etc\networks' -> '/etc/networks'
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
.
.
--> Installing /usr/share/info/mpfr.info.gz ... done
--> Installing /usr/share/info/nettle.info.gz ... done
--> Installing /usr/share/info/pinentry.info.gz ... done
--> Installing /usr/share/info/readline.info.gz ... done
--> Installing /usr/share/info/rluserman.info.gz ... done
--> Installing /usr/share/info/sed.info.gz ... done
--> Installing /usr/share/info/tar.info.gz ... done
--> Installing /usr/share/info/texinfo.info.gz ... done
--> Installing /usr/share/info/time.info.gz ... done
--> Installing /usr/share/info/wget.info.gz ... done
--> Installing /usr/share/info/which.info.gz ... done
MSYS2 seems to be properly installed

   1 - MSYS2 base installation
   2 - MSYS2 system update (optional)
   3 - MSYS2 and MINGW development toolchain
Install the MSYS2 and MINGW components by enter the value  3 
Which components shall be installed? If unsure press ENTER [] 3

> sh -lc true
MSYS2 seems to be properly installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autoconf2.13 autogen automake-wrapper automake1.10 automake1.11 automake1.12 automake1.13 automake1.14 automake1.15 automake1.6 automake1.7 automake1.8 automake1.9 diffutils file gawk grep libtool m4 make patch pkg-config sed texinfo texinfo-tex wget mingw-w64-x86_64-binutils mingw-w64-x86_64-crt-git mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-headers-git mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-libwinpthread-git mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-tools-git mingw-w64-x86_64-winpthreads-git
.
.
.
warning: texinfo-6.5-2 is up to date -- skipping
warning: texinfo-tex-6.5-2 is up to date -- skipping
warning: wget-1.20.1-2 is up to date -- skipping
warning: mingw-w64-x86_64-binutils-2.30-5 is up to date -- skipping
warning: mingw-w64-x86_64-crt-git-7.0.0.5361.8c7bdc90-1 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-8.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-libs-8.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-headers-git-7.0.0.5361.8c7bdc90-1 is up to date -- skipping
warning: mingw-w64-x86_64-libmangle-git-7.0.0.5230.69c8fad6-1 is up to date -- skipping
warning: mingw-w64-x86_64-libwinpthread-git-7.0.0.5325.11a5459d-1 is up to date -- skipping
warning: mingw-w64-x86_64-make-4.2.1-2 is up to date -- skipping
warning: mingw-w64-x86_64-pkg-config-0.29.2-1 is up to date -- skipping
warning: mingw-w64-x86_64-tools-git-7.0.0.5324.fde585a1-1 is up to date -- skipping
warning: mingw-w64-x86_64-winpthreads-git-7.0.0.5325.11a5459d-1 is up to date -- skipping
 there is nothing to do
Install MSYS2 and MINGW development toolchain succeeded

Restart the shell Open the Command Prompt with Ruby

Use the following command to install the mailcatcher

C:\Users\Admin>gem install mailcatcher
Fetching: eventmachine-1.0.9.1.gem (100%)
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
Successfully installed eventmachine-1.0.9.1
Fetching: mini_mime-1.0.2.gem (100%)
Successfully installed mini_mime-1.0.2
Fetching: mail-2.7.1.gem (100%)
Successfully installed mail-2.7.1
Fetching: rack-1.6.11.gem (100%)
Successfully installed rack-1.6.11
Fetching: rack-protection-1.5.5.gem (100%)
Successfully installed rack-protection-1.5.5
Fetching: tilt-2.0.9.gem (100%)
Successfully installed tilt-2.0.9
Fetching: sinatra-1.4.8.gem (100%)
Successfully installed sinatra-1.4.8
Fetching: sqlite3-1.4.1.gem (100%)
Installing required msys2 packages: mingw-w64-x86_64-sqlite3
.
.
.
Installing ri documentation for sqlite3-1.4.1
Parsing documentation for daemons-1.3.1
Installing ri documentation for daemons-1.3.1
Parsing documentation for thin-1.5.1
Installing ri documentation for thin-1.5.1
Parsing documentation for skinny-0.2.4
Installing ri documentation for skinny-0.2.4
Parsing documentation for mailcatcher-0.7.1
Installing ri documentation for mailcatcher-0.7.1
Done installing documentation for eventmachine, mini_mime, mail, rack, rack-protection, tilt, sinatra, sqlite3, daemons, thin, skinny, mailcatcher after 305 seconds
12 gems installed

Use the following command to get the details of mailcatcher

C:\Users\Admin>mailcatcher --help
Usage: mailcatcher [options]
        --ip IP                      Set the ip address of both servers
        --smtp-ip IP                 Set the ip address of the smtp server
        --smtp-port PORT             Set the port of the smtp server
        --http-ip IP                 Set the ip address of the http server
        --http-port PORT             Set the port address of the http server
        --http-path PATH             Add a prefix to all HTTP paths
        --no-quit                    Don't allow quitting the process
    -b, --browse                     Open web browser
    -v, --verbose                    Be more verbose
    -h, --help                       Display this help information

Start the mailcatcher by using the following command `` C:\Users\Admin>mailcatcher Starting MailCatcher ==> smtp://127.0.0.1:1025 C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thin-1.5.1/lib/thin/server.rb:104: warning: constant ::Fixnum is deprecated ==> http://127.0.0.1:1080/

**Switch to Browser and enter the localhost IP**
![snap7](https://assets.linuxhelp.com/scr/89b04b70bf71ac9b7326a1155c726571.png)
**This is the mailcatcher application**
![snap8](https://assets.linuxhelp.com/scr/adb2e899e832826476c2153b5431c33e.png)
**With this, the method to install Mailcatcher on Windows 10 comes to an end**
FAQ
Q
How to uninstall Mailcatcher?
A
Use the following command

Gem uninstall mailcatcher
Q
What are Alternatives to MailCatcher?
A
These are the alternatives for Mailcatcher

Mailtrap
FakeSMTP
MailHog
Debug Mail
etc..
Q
What is the server Mailcatcher use to receive the emails?
A
The Mailcatcher use the SMTP server to receive the emails
Q
What is the ability of Mailcatcher?
A
These are the ability of Mailcatcher inspect sent emails and their headers
Q
What is Mailcatcher?
A
Mailcatcher is a program you can use to test sending email