Check out example codes for "install mailhog mac". It will help you in understanding the concepts better.

Code Example 1

brew update && brew install mailhog

Learn ReactJs, React Native from akashmittal.com