summaryrefslogtreecommitdiff
path: root/vendor/PHPMailer/PHPMailer/POP3.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/PHPMailer/PHPMailer/POP3.php')
-rw-r--r--vendor/PHPMailer/PHPMailer/POP3.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/vendor/PHPMailer/PHPMailer/POP3.php b/vendor/PHPMailer/PHPMailer/POP3.php
index 9dab992..cd6fc2f 100644
--- a/vendor/PHPMailer/PHPMailer/POP3.php
+++ b/vendor/PHPMailer/PHPMailer/POP3.php
@@ -3,13 +3,13 @@
* PHPMailer POP-Before-SMTP Authentication Class.
* PHP Version 5.5.
*
- * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
+ * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
*
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
* @author Jim Jagielski (jimjag) <[email protected]>
* @author Andy Prevost (codeworxtech) <[email protected]>
* @author Brent R. Matzelle (original founder)
- * @copyright 2012 - 2017 Marcus Bointon
+ * @copyright 2012 - 2019 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
@@ -29,14 +29,14 @@ namespace PHPMailer\PHPMailer;
* and then loop through your mail sending script. Providing this process doesn't
* take longer than the verification period lasts on your POP3 server, you should be fine.
* 3) This is really ancient technology; you should only need to use it to talk to very old systems.
- * 4) This POP3 class is deliberately lightweight and incomplete, and implements just
+ * 4) This POP3 class is deliberately lightweight and incomplete, implementing just
* enough to do authentication.
* If you want a more complete class there are other POP3 classes for PHP available.
*
- * @author Richard Davey (original author) <[email protected]>
- * @author Marcus Bointon (Synchro/coolbru) <[email protected]>
- * @author Jim Jagielski (jimjag) <[email protected]>
- * @author Andy Prevost (codeworxtech) <[email protected]>
+ * @author Richard Davey (original author) <[email protected]>
+ * @author Marcus Bointon (Synchro/coolbru) <[email protected]>
+ * @author Jim Jagielski (jimjag) <[email protected]>
+ * @author Andy Prevost (codeworxtech) <[email protected]>
*/
class POP3
{
@@ -45,7 +45,7 @@ class POP3
*
* @var string
*/
- const VERSION = '6.0.6';
+ const VERSION = '6.1.5';
/**
* Default POP3 port number.
@@ -230,6 +230,8 @@ class POP3
}
// connect to the POP3 server
+ $errno = 0;
+ $errstr = '';
$this->pop_conn = fsockopen(
$host, // POP3 Host
$port, // Port #
@@ -364,7 +366,7 @@ class POP3
*/
protected function checkResponse($string)
{
- if (substr($string, 0, 3) !== '+OK') {
+ if (strpos($string, '+OK') !== 0) {
$this->setError("Server reported an error: $string");
return false;