Mailcatcher
Derschatta edited this page Sep 3, 2023
·
3 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.
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.
Copyright (c) 2023 Totara Learning Solutions Limited
-
Requirements
- Ubuntu/Debian/WSL: Installing Docker on Ubuntu/Debian
- MacOS: Mutagen Installation
- Installation
- Basic Usage
- 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