lib/service/autoconfig/imapserverdetector.php 1 location
|
@@ 56-64 (lines=9) @@
|
| 53 |
|
* Try to get the mx record for the email address |
| 54 |
|
*/ |
| 55 |
|
$mxHosts = $this->mxRecord->query($host); |
| 56 |
|
if ($mxHosts) { |
| 57 |
|
foreach ($mxHosts as $mxHost) { |
| 58 |
|
$result = $this->imapConnectivityTester->test($email, $mxHost, |
| 59 |
|
[$user, $email], $password, $name); |
| 60 |
|
if ($result) { |
| 61 |
|
return $result; |
| 62 |
|
} |
| 63 |
|
} |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
/* |
| 67 |
|
* IMAP login with full email address as user |
lib/service/autoconfig/smtpserverdetector.php 1 location
|
@@ 62-70 (lines=9) @@
|
| 59 |
|
* Try to get the mx record for the email address |
| 60 |
|
*/ |
| 61 |
|
$mxHosts = $this->mxRecord->query($host); |
| 62 |
|
if ($mxHosts) { |
| 63 |
|
foreach ($mxHosts as $mxHost) { |
| 64 |
|
$result = $this->smtpConnectivityTester->test($account, $mxHost, |
| 65 |
|
[$user, $email], $password); |
| 66 |
|
if ($result) { |
| 67 |
|
return; |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
/* |
| 73 |
|
* IMAP login with full email address as user |