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

Test Email Button in Mail Settings

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9, 3.1, 3.7
    • Fix Version/s: 3.7
    • Component/s: Administration
    • Labels:
    • Environment:
      LAMP
    • Testing Instructions:
      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.
    • Workaround:
      Hide

      cli scripts

      Show
      cli scripts
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_31_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-13745-master-nosetting

      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
          failedTest.png
          88 kB
        2. image-2019-03-13-08-06-54-304.png
          image-2019-03-13-08-06-54-304.png
          175 kB
        3. OutgoingMail Configuration.png
          OutgoingMail Configuration.png
          182 kB
        4. Screenshot from 2019-03-12 08-56-54.png
          Screenshot from 2019-03-12 08-56-54.png
          7 kB
        5. successfulTest.png
          successfulTest.png
          56 kB
        6. testLocation.png
          testLocation.png
          185 kB
        7. testPage.png
          testPage.png
          64 kB
        8. TestResult.png
          TestResult.png
          84 kB

          Issue Links

            Activity

              People

              • Votes:
                22 Vote for this issue
                Watchers:
                18 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  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