Skip to content

Mailcatcher

Mark Metcalfe edited this page Nov 27, 2024 · 4 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.

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

services:
  mailcatcher:
    image: maildev/maildev
    container_name: totara_mailcatcher
    ports:
      - "1080:1080"
    environment:
      TZ: ${TIME_ZONE}
    networks:
      - totara

And change the config.php entry to be:

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

Now access the MailDev instance with http://localhost:1080

Clone this wiki locally