Skip to content
Advertisement

How should I setup Mailhog to work with Docksal?

I have follow official documentation on https://docs.docksal.io/tools/mailhog/ But can not get mails on mailhog. In logs (fin logs -f cli) I have:

WARNING: [pool www] child 49 said into stderr: “sh: 1: /usr/local/bin/mhsendmail: not found”

My docksal.yml:

JavaScript

My script (test.php):

JavaScript

always returns bool(false) and no mails in the mailhog dashboard. What could be wrong?

Advertisement

Answer

The cause of the error is a line

JavaScript

in project/.docksal/etc/php/php.ini

Need to delete it and everything is OK.

PS. Seems it comes from

JavaScript

command.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement