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

Non required params among outgoing mail configuration setting are used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.8.8, 3.9.6, 3.10.3
    • Email
    • None
    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Let me describe this situation

      I want to setup "Outgoing mail configuration".
      Let's suppose my params are:
      SMTP hosts: mymail.mycompany.com
      SMTP security: None
      SMTP Auth Type: PLAIN

      With those settings, going to "Test outgoing mail configuration" I am able to send a test email.
      I am happy.

      In spite of this I found that even if
      SMTP Auth Type: PLAIN
      (and not SMTP Auth Type: LOGIN)
      if I set a dummy SMTP username and password, the test email is no longer delivered reporting the error: "Your site couldn't communicate with your mail server. Please check your outgoing mail configuration.".
      Why do SMTP username and SMTP password are used even if (SMTP Auth Type != LOGIN)?

      Is this a bug?

      I didn't go to check for the code but, IMO, I think that something like

      if ($CFG->smtpauthtype != 'LOGIN') {
      } else {
      }

      should craft the email server connection string.

            Unassigned Unassigned
            daniss Daniele Cordella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.