I am using Docker4drupal, a preconfigured set of docker containers.
One of the containers is the mailhog tool.
Docker4drupal is configured to use mailhog as email sender so it captures all mail sent for developing purposes. This is great but I would to allow some emails to pass through.
How can I bypass mailhog for certain emails?
I can think on those approaches:
- Temporary reconfigure docker4drupal to use an smtp server.
- Make mailhog forward emails using an smtp server.
I don't know how to accomplish any of them. How can I do this? I there any other better approach?