Error : Connection could not be established with host mailhog :stream_socket_client(): Unable to connect to mailhog:1025 (Connection refused)in laravel

 



1)  Error : Connection could not be established with host mailhog :stream_socket_client(): Unable to connect to mailhog:1025 (Connection refused)

 Solution : nstall

Mailhog Requires Go 1.4+ to run so we will install GO language in system.


sudo apt install golang-go -y


Cross verify Go language is successfully installed.


Verify installation


go version


we will see output something like this


go version go1.13.8 linux/amd64

If you found any installation related issues please visit: https://golang.org/doc/install


2. Install Mailhog

Install Mailhog

Downloading & installation


go install github.com/mailhog/MailHog@latest


go get github.com/mailhog/MailHog // this command is deprecated as of now


To start the MailHog run:


~/go/bin/MailHog


Copy Mailhog to bin directory


 sudo cp ~/go/bin/MailHog /usr/local/bin/Mailhog


Open terminal and start mailhog server


Mailhog

  

 https://gist.github.com/dipenparmar12/4e6cd50d8d1303d5e914742f62659116

No comments:

Post a Comment

Pages