Questions tagged [mailhog]

48 questions
0
votes
0 answers

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. Maybe the SMTP server 1025 also works but don't…
Alpin Cleopatra
  • 163
  • 3
  • 14
0
votes
1 answer

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 the email in the MailHog web interface after I send…
0
votes
1 answer

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 both: Failed asserting that the Transport…
Toma Tomov
  • 1,476
  • 19
  • 55
0
votes
1 answer

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) => { const email = require("./core/email"); var mail = new…
IGentlich
  • 81
  • 2
  • 13
0
votes
0 answers

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 you help me please IndexController…
user14563386
0
votes
1 answer

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 curl: (28) Failed to connect to 172.17.0.2 port…
0
votes
1 answer

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": { "Relays": null, "Mailbox": "developer-send-mail", …
Nopparut
  • 3
  • 2
0
votes
0 answers

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: