Skip to content

Mailcatcher

Derschatta edited this page Sep 3, 2023 · 3 revisions

Mailcatcher container

The setup comes with mailcatcher support. Mailcatcher allows you to view all emails triggered by your Totara sites. Go to http://localhost:8080 to view the mailcatcher GUI.

Make sure that your config.php contains the following line:

// Redirects any emails sent by the server
$CFG->smtphosts = 'mailcatcher:25';

Maildev (alternative)

You can also use an alternative tool called Maildev.

https://github.com/maildev/maildev

Just create a new file custom/mailcatcher.yml with the following contents:

version: "3.7"
services:

  mailcatcher:
    image: maildev/maildev
    ports:
      - "9090:1080"

Now access the maildev instance with http://localhost:9090. The config.php entry is the same as for mailcatcher above.