-
Notifications
You must be signed in to change notification settings - Fork 32
Mailcatcher
Mark Metcalfe edited this page Nov 27, 2024
·
4 revisions
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';
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
Copyright (c) 2023 Totara Learning Solutions Limited
- Node.js and Grunt
- PHPUnit
- Behat
- Cron
- Machine Learning
- Mailcatcher (for viewing emails)
- Shell Customisations
- Ngrok (for making your site publicly accessible)
-
PHPStorm Integration
- Performance improvements
- Automated testing integration
- XDebug setup
- Database tools