Moodle eMail Test

General plugins (Local) ::: 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:
10636 sites
128 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.


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


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

Comments RSS

Show comments
  • Michael Milette
    Mon, Mar 23, 2020, 1:05 PM
    Hi Samir,

    Moodle sends email over SMTP (port 587), not IMAP (port 993) so you can't just copy the settings from your smartphone.

    For the proper settings, see

    Some additional tips (predicting your challenges):
    - Sometimes you may need to also specify the port on host address.
    - Be sure that your no-reply email address is one that actually exists.
    - Use TLS.

    Hope this helps.

    Best regards,

  • Ricardo Caiado
    Tue, Aug 18, 2020, 4:43 AM
    Is it compatible with 3.9+ version of Moodle?
  • srinivas a
    Thu, Sep 24, 2020, 7:40 PM
    got the following success message while sending php sendmail , but mail not recieved

    Logging is not available when using PHP mail() function. However, may find logs on your server. Most common locations on Linux include:

    Alernatively, a custom location may be specified using the mail.log setting in php.ini.

    The Moodle test message was successfully accepted by PHP Mail.

    From :
    To :

    plz guide anyone . using moodle latest 3.9

  • Madison Wilson
    Tue, Jul 20, 2021, 2:08 PM
    Hope someone can help, Is it compatible with 3.9+ version of Moodle?

  • Michael Milette
    Wed, Jul 21, 2021, 1:07 AM
    Ricardo and Madison - As indicated at the top of this plugin's page, it is compatible with Moodle 2.5 to 3.11.
  • Michael Milette
    Wed, Jul 21, 2021, 1:12 AM
    Rrinivas a - You either need need to set-up the SMTP settings in Moodle or in your server. For more help, please use the Discussion link on the plugin page and post any further questions you might have in the discussion forum.
  • Michael Milette
    Tue, Apr 26, 2022, 7:07 PM
    Great news! eMailTest for Moodle has now been tested and approved for use with Moodle 2.5 to 4.0.

    What's New

    - Detects and reports the log location if mail.log is set in php.ini.
    - Detects if email diverting is enabled.
    - Detects if email/messaging is disabled by way of $CFG->noemailever.
    - Compatible with PHP 5.6 to 7.4.

    Hope you find it useful.

    Michael Milette
  • ct tang
    Sat, Nov 5, 2022, 7:54 PM
    when use with sendgrid, there is a need to do domain authentication in sendgrid and create a verified email account - otherwise eMailTest will fail
  • Michael Milette
    Wed, Nov 9, 2022, 9:05 PM
    Hi ct tang,

    Thanks for sharing this useful tip with the Moodle community. Hope it will help others who use SendGrid.
  • Jon Johnson
    Wed, Jun 14, 2023, 8:54 AM
    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
    Fri, Oct 20, 2023, 11:38 PM
    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
    Mon, Oct 23, 2023, 11:11 AM
    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
    Mon, Oct 23, 2023, 12:30 PM
    Hello I, I am looking into the issue. First time I experienced this too.
  • Michael Milette
    Mon, Oct 23, 2023, 2:52 PM
    Hello I,

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

    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 Milette
    Mon, Oct 23, 2023, 4:24 PM
    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!
1 2 3
Please login to post comments