Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13745

Test Email Button in Mail Settings

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9, 3.1, 3.7
    • 3.7
    • Administration
    • LAMP
    • MOODLE_19_STABLE, MOODLE_31_STABLE, MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-13745-master-nosetting
    • Hide

      cli scripts

      Show
      cli scripts
    • Hide

      Prerequisites

      1. Set-up mailcatcher (https://mailcatcher.me/).
      2. Log in as an admin.
      3. Visit ‘Site administration’ > ‘Server’ > ‘Outgoing mail configuration’.
      4. Set the 'SMTP hosts' field to '127.0.0.1:1025'.
      5. Save.
      6. Visit ‘Site administration’ > ‘Plugins’ > ‘Manage authentication’.
      7. Enable ‘Email-based self-registration'.
      8. Set 'Self registration' to 'Email-based self-registration'.
      9. Save.
      10. Log out.
      11. Visit 'http://127.0.0.1:1080/' to view outgoing emails and stay on this page for the remainder of this test. When any of the below instructions mention check your email it means refer to this page.

      Testing

      1. Go to Site administration > Server > Email >Outgoing mail configuration.
      2. Confirm that you see the Test outgoing mail configuration section at the bottom of the page.
      3. Save the configuration.
      4. Follow the Test outgoing mail configuration link at the bottom of the page.
      5. Set To email address text field to the address where you want to send the mail test.
      6. Press Send a test message button.
      7. A notification will show the result of the test.
        • If you are using mailcatcher with the suggested SMTP or a valid outgoing mail configuration:
          • Confirm the notification background is green, so the email was successfully sent.
        • If you are using a wrong SMTP servers configuration:
          • Confirm the notification background is red, so the email couldn't be sent.
      Show
      Prerequisites Set-up mailcatcher ( https://mailcatcher.me/ ). Log in as an admin. Visit ‘Site administration’ > ‘Server’ > ‘Outgoing mail configuration’. Set the 'SMTP hosts' field to '127.0.0.1:1025'. Save. Visit ‘Site administration’ > ‘Plugins’ > ‘Manage authentication’. Enable ‘Email-based self-registration'. Set 'Self registration' to 'Email-based self-registration'. Save. Log out. Visit 'http://127.0.0.1:1080/' to view outgoing emails and stay on this page for the remainder of this test. When any of the below instructions mention check your email it means refer to this page. Testing Go to Site administration > Server > Email >Outgoing mail configuration . Confirm that you see the Test outgoing mail configuration section at the bottom of the page. Save the configuration. Follow the Test outgoing mail configuration link at the bottom of the page. Set To email address text field to the address where you want to send the mail test. Press Send a test message button. A notification will show the result of the test. If you are using mailcatcher with the suggested SMTP or a valid outgoing mail configuration: Confirm the notification background is green, so the email was successfully sent. If you are using a wrong SMTP servers configuration: Confirm the notification background is red, so the email couldn't be sent.

    Description

      Hello,

      Would it be all possible to add an email test button to the mail settings page. This would greatly improve efficiency, and give administrators a way to quickly test their settings in mail. Rather than creating a forum post, and going to the cron page manually.

      Cheers,

      Brent.

      Attachments

        1. failedTest.png
          88 kB
          Víctor Déniz Falcón
        2. image-2019-03-13-08-06-54-304.png
          175 kB
          Janelle Barcega
        3. OutgoingMail Configuration.png
          182 kB
          Víctor Déniz Falcón
        4. Screenshot from 2019-03-12 08-56-54.png
          7 kB
          Adrian Greeve
        5. successfulTest.png
          56 kB
          Víctor Déniz Falcón
        6. testLocation.png
          185 kB
          Víctor Déniz Falcón
        7. testPage.png
          64 kB
          Víctor Déniz Falcón
        8. TestResult.png
          84 kB
          Víctor Déniz Falcón

        Issue Links

          Activity

            People

              vmdef Víctor Déniz Falcón
              leebrent Brent Lee
              Mark Nelson Mark Nelson
              Adrian Greeve Adrian Greeve
              Janelle Barcega Janelle Barcega
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              22 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                20/May/19

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 10 minutes
                  3h 10m