mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #44702
[Bug 1713441] Re: SMTP port isn't set when no SMTP user is specified
smtp library allows to define the port as part of the host using this
format: [hostname:port]. If it's done this way, it will not use the port
specified 'smtpport' in Mahara configuration. In this case, we don't
have any issue.
But in the case the host doesn't include the port, then the 'smtpport'
in Mahara configuration is used.
So in the case we have the port not defined in 'smtphosts' but in
'smtpport', and we don't have the 'smtpuser' value set, then the port is
ignored by Mahara and it's not what we want. I think the fix proposed
here is correct.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1713441
Title:
SMTP port isn't set when no SMTP user is specified
Status in Mahara:
Confirmed
Bug description:
Hello,
Mahara does not set a custom SMTP port in case no SMTP user name is
specified.
The fix is trivial: in file lib/user.php move line 762 to 756, so the
port is set right after setting the host outside of if-clause.
Cheers,
Dimitri.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1713441/+subscriptions
References