Change account confirmation mail content on moodle
To change the account confirmation mail content on Moodle, you'll need to modify the confirmmail
template. Here's a step-by-step guide:
Method 1: Using the Moodle interface
- Log in to your Moodle site as an administrator.
- Go to Site administration > Plugins > Web services > Email templates.
- Click on the Confirm mail template.
- Click the Edit button.
- Update the template content as needed.
- Click Save changes.
Method 2: Editing the template file
- Log in to your Moodle site as an administrator.
- Go to Site administration > Plugins > Web services > Email templates.
- Click on the Confirm mail template.
- Click the Download as file button.
- Edit the downloaded file (
confirmmail.php
) using a text editor or IDE. - Update the template content as needed.
- Upload the modified file back to the same location.
Template variables
When editing the template, you can use the following variables to customize the content:
{fullname}
: The user's full name.{username}
: The user's username.{site}
: The site's name.{url}
: The site's URL.{confirmurl}
: The URL to confirm the account.
Example:
Dear {fullname},
Welcome to {site}! We're excited to have you on board.
To activate your account, please click on the following link:
{confirmurl}
Best regards,
The {site} team
Tips
- Make sure to keep the template content concise and easy to read.
- You can use HTML tags to format the text, but be cautious not to break the email layout.
- If you're not comfortable editing the template file, you can also create a custom email template using a plugin like Email templates.
After modifying the template, users will receive the updated confirmation email when they create a new account or request a password reset.