![Theme Switcher Image](https://stackcoder.in/images/theme-switcher.png?cb=stackcoder90070)
Good content takes time and effort to come up with.
Please consider supporting us by just disabling your AD BLOCKER and reloading this page again.
Hey, guys hope you might have worked with Mailtrap and other various services to test the mail.
Sometimes you might have accidentally sent the test email to your clients and the issue might have got escalated sometimes. To overcome this kind of issue let's quickly install the MailHog in your local system.
We will cover the following topics
brew update && brew install mailhog
sudo apt-get -y install golang-go
go get github.com/mailhog/MailHog
You can find a whole bunch of Operating System supported downloads in this link MailHog GitHub Download
Just open your terminal and run the following command. It's that simple.
mailhog
If you have installed it in some directory then it can be run with the following
Go to /path/to/MailHog in the command line. E.g. the path to Go's bin files on Ubuntu is ~/go/bin/, so to start the MailHog run:
~/go/bin/MailHog
Make sure not to close the terminal during the time your working with your mails.
MAIL_MAILER=smtp
MAIL_HOST=0.0.0.0
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=stackcoder.in@gmail.in
MAIL_FROM_NAME="${APP_NAME}"
NOTE: Make sure you are running the MailHog as show in Step 2
Go to the following URL in your browser
http://localhost:8025
You will be able to see MailHog as shown below
Free SSL Certificate With Lets Encrypt/Certbot In Linux (Single / Multiple Domains)
Securely SSH Your Server & Push Files With FileZilla
Website Speed and Performance Optimizations
Cache Static Files With NGINX Server
Google reCAPTCHA Integration In PHP Laravel Forms
What Is Composer? How Does It Work? Useful Composer Commands And Usage
Add Analytics To AMP (Accelerated Mobile Pages) HTML Pages
Basic Server Security Setup For Ubuntu / Linux
Why And How To Use PHP PDO With CRUD Examples
Setup AMP (Accelerated Mobile Pages) In PHP Laravel
Relationship Table Data With Route Model Binding In Laravel
Factories To Speed Up Test-Driven Development In Laravel
What Is Method Chaining In PHP?