Skip to content
Snippets Groups Projects
Commit 156ae8d8 authored by Peter Rotich's avatar Peter Rotich
Browse files

Make sure password or no auth. is set on SMTP 'is enabled' check.

parent f77f37f7
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,12 @@ class Email {
}
function isSMTPEnabled() {
return $this->ht['smtp_active'];
return (
$this->ht['smtp_active']
&& ($info=$this->getSMTPInfo())
&& (!$info['auth'] || $info['password'])
);
}
function allowSpoofing() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment