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

Forum emails not being sent, fixed by removing broken email address

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Forum, Messages
    • Labels:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      For developers:
      1/ create a sample script that tries to send email to invalid email address via email_to_user()
      2/ test it both via CLI and web interface
      3/ expected "false" result and error message in CLI

      Show
      For developers: 1/ create a sample script that tries to send email to invalid email address via email_to_user() 2/ test it both via CLI and web interface 3/ expected "false" result and error message in CLI
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w04_MDL-31202_m23_emailvalidation

      Description

      Forum emails were not being sent, or being sent very intermittently. We checked and re-checked cron, even running it manually, but emails from all kinds of forums with all types of subscriptions were not being sent regularly and correctly.

      While running some tests in a test course with a regular, forced subscription forum, we discovered that some of the emails had shown up in the default bounce-back email address inbox because they were being sent to a fake student account that had an inoperable email address listed (having been created by the admin, the account never went through an email address verification process). After fixing this email address, forum posts began working in every class that fake student was enrolled in.

      Obviously, one bad email address should not cause a choke point for an entire forum/class.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Mar/12