Moodle eMail Test

Local plugins ::: local_mailtest
Maintained by Michael Milette
Moodle eMailTest is a powerful tool that enables administrators to test Moodle’s email system with ease. With this plugin, you can rest assured that your emails will be delivered without any hiccups. In case of any issues, a trace of the SMTP dialogue will be displayed. The plugin will also attempt to diagnose the issue and help you identify and resolve the problem quickly.
Latest release:
11468 sites
1k downloads
142 fans
Current versions available: 1

The Moodle eMailTest plugin is a tool that enables administrators to easily test Moodle's mail system. A trace of the SMTP dialogue will be displayed if the email message cannot be sent for any reason. Version 3.x+ comes with a new diagnostic feature that helps you narrow down the issue and offers potential solutions. This feature makes it easier than ever to identify and resolve any problems with your email system.

Please note that once you’ve sent a test email, you’ll need to check your inbox to confirm that the message was delivered successfully. While this plugin won’t do that for you, it will provide troubleshooting suggestions if the email doesn’t make it to your inbox.

Potential privacy issues

Note that the email sent to the recipient contains details about the administrator and the site including account username, web browser, IP address, Moodle version and preferred language.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5

Contributors

Michael Milette (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments

Rezulton rimarka
  • Michael Milette
    me, 9 de nov 2022, 21:05
    Hi ct tang,

    Thanks for sharing this useful tip with the Moodle community. Hope it will help others who use SendGrid.
  • Jon Johnson
    me, 14 de jun 2023, 08:54
    I am trying to setup Moodle so as when a student replies via email in a forum or quiz that Reply to is the students profile email address within Moodle.

    Currently it is using the no-reply address.

    I have setup allowed domains for those email domains our students use and all our students have allow participants of course to see email set.

    However when they send an email as mentioned the reply to address is the no-reply one.

    When I use the Site administration -> Server -> Email -> eMail Test (This plugin)

    The reply to address is the one in the user profile of the sender, the result I want.

    However, when I use the Site administration -> Server -> Email -> Outgoing mail configuration
    Test outgoing mail configuration

    The reply to address is the noreply address, NOT the result I want.
    (And this is what happens when a student sends an email from a Forum or Quiz.)

    Have you got any insights that may help.
  • Michael Milette
    ve, 20 de okt 2023, 23:38
    eMailTest 3.0 has arrived! This latest release includes a new diagnostic feature that tries to identify the cause of connectivity and authentication issues and offer some solutions. This release is also compatible with Moodle 4.3.

    Hope you find it useful.

    Best wishes to you all!

    Michael Milette
  • I Made Suwancita
    lu, 23 de okt 2023, 11:11
    I can't install this, it says: tool_installaddon/installing_non_installable_component

    There is a request to install plugin Moodle eMail Test (local_mailtest) version 2023102000 from the Moodle plugins directory on this site. However, the plugin installation pre-check failed (reason code: remoteunavailable).
  • Michael Milette
    lu, 23 de okt 2023, 12:30
    Hello I, I am looking into the issue. First time I experienced this too.
  • Michael Milette
    lu, 23 de okt 2023, 14:52
    Hello I,

    I suspect this might be an issue with the moodle.org/plugins site. This seems to only affect you if you try to install the plugin directly using the Install button on moodle.org/plugins.

    What does work? Download the plugin first and then upload (or drag and drop) it to the Install Plugins page, it installs just fine. Hopefully the Moodle HQ devs will be able to address the issue later today.

    Best regards,

    Michael
  • Michael Milette
    lu, 23 de okt 2023, 16:24
    The issue has been resolved. You should be able to install the plugin from within Moodle now. Big thanks to the Moodle HQ team for quickly fixing the issue!
  • AL Rachels
    sa, 20 de jul 2024, 01:38
    Was just trying to use this plugin on latest Moodle 4.4.1+ when the index.php file gave me two debug messages regarding deprecated strings,'from' and 'to'. In my Moodle I changed them to 'fromsender' and 'torecipient' and the plugin then worked without further debug messages.
  • Randy Novion
    ĵa, 19 de jun 2025, 11:30
    After installing, i encountered this message: URL https://courses.deityworshiponline.com/local/mailtest/
    " 403 Forbidden "
    nginx

    Moodle 5.0
  • Michael Milette
    ĵa, 19 de jun 2025, 13:00
    Hi Randy,

    403 Forbidden is usually an issue with the configuration of your web server. More likely than not, it is a file system permissions issue or you are not logged in as a site administrator.

    Best regards,

    Michael
  • Eiz E A.
    ĵa, 11 de dec 2025, 22:12
    This plugin doesn't work with Moodle 5.1. Is there going to be an updated version compatible with 5.1+?
  • Michael Milette
    ma, 23 de dec 2025, 02:00
    Hi Eiz,

    I tested it on Moodle 5.1 and it seems to work. On Moodle 5.1, make sure you put the file in the /public/local/mailtest directory or install the plugin from Moodle's built-in Plugin Installer.

    If this doesn't help, please use the Bug Tracker link on the plugin page to report your issue and we can try to resolve the issue.

    Best regards,

    Michael
  • Joshua Tan
    me, 24 de dec 2025, 14:58
    I just upgraded from Moodle 4.5.6 to 4.5.8 and having some issues with outbound emails. I tried installing your plugin but when I tried to access it, I get the following errors:

    Exception - Call to undefined function local_mailtest_generate_email_user()
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:
    line 77 of /local/mailtest/index.php: Error thrown
  • Michael Milette
    me, 24 de dec 2025, 16:56
    Hi Joshua,

    I tested the plugin on Moodle 4.5.8 and it works perfectly.

    The local_mailtest_generate_email_user function is definedon line 35 of locallib.php. The locallib.php file is included on line 32 of index.php. So, I am not seeing how it can be failing.

    That said, here are a few things you can check:

    1. Make sure that you have version 2025042700 (release 3.1.7) installed.
    2. Check the file permissions.
    3. Purge your Moodle cache.
    4. Uninstall and re-install the plugin (you should not need to do that).

    Hope something in all this helps.

    Best regards,

    Michael Milette
  • Joshua Tan
    me, 24 de dec 2025, 18:31
    Does running on PHP 8.2 affect it? I'm sorry, I'm new to this.

    Yes, I've installed the latest version 2025042700 (release 3.1.7).

    File permissions should be fine.

    I just purged the cache.

    Still having the same errors
1 2 3
Please login to post comments