Questions tagged [mailhog]
The mailhog tag has no usage guidance.
48
questions
1
vote
1
answer
38
views
Trying to send an email using express and nodemailer and literally nothing is showing up in the console or the terminal
trying to get it so that when the send email button is clicked it sends it to a mailhog inbox, but it is literally doing nothing, not even any console errors or anything in the terminal. What I'm ...
0
votes
1
answer
741
views
How can i configure mailhog in my laravel application
I have a .env file looks like this:
MAIL_MAILER='mailgun'
MAIL_HOST='smtp.mailgun.org'
MAIL_PORT=587
MAIL_ENCRYPTION='SSL'
MAIL_FROM_NAME="${APP_NAME}"
but i get this error when i want to ...
-2
votes
1
answer
358
views
I'm trying to send mails through mailhog using laravel
type herehere is my .env :
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:p5lGXZTf7OB8BwTkbRBiBxoVn0yOO06tSyP/iChZJGA=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
...
0
votes
0
answers
149
views
How do I add authentication to MailHog?
For testing purposes, I need to add authentication to MailHog within a local Laravel application. I believe this is possible, but not sure what steps to take. I've seen the official notes (https://...
0
votes
0
answers
107
views
Craftcms does not send local emails using mailhog
I need to send emails with craftcms, mailhog and containers ddev, but i don't receive emails in my inbox gmail, hotmail... I already configured my .env for local credentials according to the ...
1
vote
1
answer
677
views
Keycloak: Email testing error with Mailhog on localhost - "Connection refused"
I have containers running locally for both Keycloak and Mailhog. I then wanted to send some test emails from Keycloak, but I am always getting the error below. I have made the configuration as ...
0
votes
1
answer
528
views
Docker Mailhog with Docker django error: [Errno 111] Connection refused
I have 2 containers running through docker-compose, one with Django, the other with Mailhog. But when I send_mail through Django python manage.py runserver, it is possible to send, if i run a docker-...
5
votes
2
answers
12k
views
Connection could not be established with host mailhog :stream_socket_client(): unable to connect to null://mailhog:1025
I'm getting an error in mailhog while sending an email.
Error:
Connection could not be established with host mailhog :stream_socket_client(): unable to connect to null://mailhog:1025 (Unable to find ...
0
votes
1
answer
623
views
Using Docker, cannot run mailhog/mailhog:latest for Macbook Pro M1
I tried to run mailhog in Docker using the mailhog/mailhog:latest on Macbook Pro M1.
This is my docker file as swarm.yml:
version: '3'
services:
mailhog:
image: 'mailhog/mailhog:latest'
...
-1
votes
1
answer
381
views
Check email body using cypress mailhog
I'm trying to check if the email body contains, for example, a username, but i get this error saying that the value is undefined
it.only('User info', () => {
const email= cy.mhGetMailsBySubject('...
0
votes
0
answers
647
views
error sending mail, dial tcp 127.0.0.1:1025: getsockopt: connection refused, docker, mhsendmail
Dockerfile
COPY php.ini /usr/local/etc/php/conf.d/
RUN apt-get update &&\
apt-get install --no-install-recommends --assume-yes --quiet ca-certificates curl git &&\
rm -rf /var/...
0
votes
0
answers
1k
views
How to test email sending with Mailhog on local?
Setup mailhog with docker-compose like:
version: '3'
services:
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
- 1025:1025
It's possible to access localhost:8025 from browser....
0
votes
1
answer
573
views
Why my MailHog doesn't integrate with PHP?
I am setting up the dev environment on the M1 MBP. The PHP and NGINX are installed with the HomeBrew directly on the machine. The ElasticSearch and MailHog - with the Docker.
I am struggling to see ...
1
vote
4
answers
641
views
Cypress click on link in mailhog body email
I need a help about testing mailhog with cypress.
I am trying to click on "Forgot password" link in email body, any advice how to do it?
0
votes
1
answer
343
views
Asserting email was sent with mailhog dsn
Testing my email sending logic, doesn't catch the sent email to mailhog.
// Both ways don't work
$this->assertEmailCount(1, 'smtp://mailhog:1025');
$this->assertEmailCount(1);
Errors I got for ...
1
vote
1
answer
202
views
Stream data from API
I am trying to pull data on mails coming into an API from an email testing tool mailhog.
If I use a call to get a list of emails e.g
GET /api/v1/messages
I can load this data into a struct with no ...
0
votes
1
answer
971
views
nodemailer with mailhog using docker
Trying to send mail using nodemailer, got "outside" as an answer (means mail was not sent). No error, or anything that can be catched
index.js
app.get('/test', async (req, res) => {
...
-2
votes
1
answer
720
views
Mailhog not receiving mail with Warden/Magento2 setup
I followed the steps at https://docs.warden.dev/environments/magento2.html to setup a magento2 environment and followed the instructions exactly. However, I'm not seeing any emails come through to ...
1
vote
1
answer
494
views
finding a docker-compose file with wordpress and mailhog already working together
I would like to use mailhog during wordpress development. Sadly, I cannot get mailhog to work with the wordpress docker-compose files i have found online. I understand that it is possible to extend a ...
1
vote
1
answer
1k
views
Docker laravel: Connection could not be established with host mailhog
I have a laravel app that is running via a docker-compose file. Here's the file:
version: '3'
services:
#PHP and Apache
site:
user: 1000:1000
image: alfasoft/php:7.4.27
...
0
votes
0
answers
2k
views
Symfony 5 mail not send - MailHog
When I try to send a local mail I do not get anything and yet I have no mistake. Normally I should receive the mail on Mailhog. I tested by sending an email with phpmailer and it works perfectly.
Can ...
2
votes
2
answers
144
views
What can I do if parsing a test email is taking too long?
I plan to test a confirmation email with Cypress and MailHog. In principle, a few attributes and values should be present there. In a test mail that is about 200 K in size, the following code worked ...
2
votes
0
answers
141
views
AWS Elastic Beanstalk Mailhog deploy: Error reading auth-file: open /app/bin/auth.txt: no such file or directory
The trouble is that I have an issue when I am trying to deploy the Mailhog and run it with the auth file via AWS EB in the Docker platform. The issue is:
[HTTP] Error reading auth-file: open /app/bin/...
1
vote
0
answers
655
views
Configuring Mailhog on Mac
I'm trying to configure mailhog on mac. I have it installed (homebrew) and ran maillog.
My console shows:
mailhog
2022/01/19 11:21:42 Using in-memory storage
2022/01/19 11:21:42 [SMTP] Binding to ...
3
votes
2
answers
3k
views
Auto boot MailHog on Ubuntu 20.04
I installed MailHog in my staging environment by following these steps:
sudo apt-get -y install golang-go
go get github.com/mailhog/MailHog
In order to manually start the service I do:
cd ~/go/bin
....
1
vote
0
answers
234
views
How to authenticate cypress-mailhog request. 401 status code
I am using cypress and mailhog to test email validation step of the sign up process on our staging site. Currently the test is failing with a 401 status code - the mailhog inbox requires a username ...
0
votes
1
answer
899
views
Operation timed out when connecting to Mailhog in Docker container
I started mailhog in container: docker run --rm -ti -p 8025:8025 -p 1025:1025 mailhog/mailhog. Web UI works, but connection fails:
curl smtp://172.17.0.2:1025 --mail-from a@b.com --mail-rcpt c@d.com
...
0
votes
1
answer
2k
views
Send mail from Mailhog to Gmail but gmail can't receive mail
I'm try to use api in mailhog
Get /api/v1/messages
[
{
"ID": "ZOif6IQhqZgViFi2HO4e8KBSJBAzlwwJ-92rCBccNU8=@mailhog.example",
"From": {
&...
3
votes
4
answers
6k
views
Mailhog is not working in Laravel 8.x + Sail
I'm using Sail with Laravel 8.x
I set it up and it's working perfectly.
However, as said here in the Doc, I'm supposed to be able to access the MailHog web interface at: http://localhost:8025 since I ...
0
votes
0
answers
253
views
Email template | Insert custom HTML block above the subject
Im trying to add gmail markups to the top of the order confirmation email like showed in the picture
I tried using the gmail provided markup code:
<script type="application/ld+json">
{...
1
vote
1
answer
529
views
Laravel Homestead latest mailhog service is not available
Due to application versions, I have 3 laravel Homestead boxes. I'm using MacOS.
Laravel Homestead 9.7.2
Laravel Homestead 12.2
Laravel Homestead 12.6
For each of them I do:
v10.17
laravel/homestead ...
1
vote
1
answer
807
views
Laravel Forge Mail Error Connection can't be established with host mailhog
I have very strange error on my Laravel Forge production server.
My .env config and mail.php config variables:
smtp.mailgun.org
587
<mailgun username>
<mailgun server>
smtp
smtp.mailgun....
0
votes
1
answer
1k
views
Laravel Homestead Mailhog Error listening on socket: listen tcp 0.0.0.0:1025: bind: address already in use
I am struggling to make MailHog work in my Laravel Homestead VM.
If I browse http://localhost:8025/, the web browser says it can't find it.
Then, in the command line, when executing $ mailhog, I get ...
1
vote
0
answers
830
views
import node js modules inside Cypress typescript project
I want to import a node module and add it to my command.ts in cypress. the tutorial suggests adding
import 'cypress-mailhog';
to the command.js file. when I add it to my command.ts file, I am not ...
5
votes
3
answers
14k
views
Connection could not be established with host mailhog :stream_socket_client()
I'm getting an error in mailhog while sending an email to new user for creating password.
Error:
Connection could not be established with host mailhog :stream_socket_client(): php_network_getaddresses:...
1
vote
2
answers
2k
views
Unencrypted connection when sending mail using mailhog and golang
These code works normally when using gmail (with AllowLessSecureApp turned on), but doesn't work with mailhog (unencrypted connection error), these the minimal code to reproduce:
package main
import (
...
2
votes
1
answer
713
views
how to configure mailhog on windows
I want to set up mailhog on my windows laptop.
I downloaded the executable added it to the path.when I'm using the URL localhost:8025, it works just fine, opens up mailhog,but I won't get any messages ...
1
vote
2
answers
4k
views
Mailhog, Trapmailer and gmail via symfony
I got some trouble with mails generation on my Symfony app :
I use docker
when I use Gmail to send emails :
MAILER_URL=gmail://MyAddress@gmail.com:MyPw@localhost
everything works fine
but as soon as ...
2
votes
3
answers
3k
views
can't establish SMTP connection to the Mailhog from keycloak
I have a docker-compose and it contains Keycloak and Mailhog. I configured the Mailhog in Keycloak but it does not work. I tried MailHog in Powershell it works. Can someone help me figure out why it ...
1
vote
2
answers
2k
views
Laravel 5.2: Expected response code 220 but got code "500", with message "500 Unrecognised command
I am trying to test the email functionality on my app and it is rendering the following error:
Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 220 but got code &...
0
votes
2
answers
2k
views
Why connexion could not be established with host on Symfony and Mailhog on Docker
I have this exception went i sent mail through Symfony SwiftMailer:
Exception occurred while flushing email queue: Connection could not be established with host 127.0.0.1 :stream_socket_client(): ...
0
votes
0
answers
495
views
MailHog not Authenticating with GoMail
We have a docker compose that connecting a golang mail service with a mailhog service. Below is the mailhog configuration in our docker-compose.yml:
mailhog:
image: mailhog/mailhog:latest
...
4
votes
2
answers
3k
views
How can I view emails from a DDEV project in an actual mailreader, not just mailhog?
I'm working on a project that is email-intensive and I appreciate that the emails land in mailhog on DDEV, but I want to see them in gmail, Outlook, etc. How can I get them to where I want to look at ...
0
votes
0
answers
413
views
Store files ordered by last modified date in Azure File Share
I keep Mailhog e-mails in Azure File Storage. The storage keeps them ordered by name, I need them to be ordered by last modified time, the default ordering causes them to be unordered when retrieved ...
1
vote
1
answer
2k
views
PHPMailer & Mailhog: connection refused, host not known
trying to get Mailhog to run. i'm running a Neard stack and i haven't used Mailhog before. the docs are slim for somebody who isn't familiar with email services (finger pointing at self). here's ...
0
votes
1
answer
3k
views
How can I make a docker-compose file with mailhog and wordpress images work?
I have a docker-compose.yml file like this (you might have to go through the article in the link in it):
version: '3.3'
# + https://phauer.com/2017/test-mail-server-php-docker-container/
services:
...
0
votes
1
answer
4k
views
How do I run Laravel Mailhog using PHP server
I'm not able to install Homestead, so I'm using the command line below to run my Laravel app
php -S localhost:8000 -t public/
I'm trying to get Mailhog running. On my .env file, I set the mail ...
0
votes
1
answer
4k
views
Docker: Mailhog "connection refused"
I have a php-fpm container which should be sending mail to another container using Mailhog. The error message is:
Swift_TransportException: Connection could not be established with host mailhog [...