summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Jack <cuonic@cuonic.com>2015-12-22 17:52:20 +0100
committerLiam Jack <cuonic@cuonic.com>2015-12-22 17:52:20 +0100
commitd22beff9a5d62e63dd67544a223dee9a27005d95 (patch)
treee5b71fe83fb148f7c45d86d916621638ea348336
parent4347e795411c07fb8b34a4b1634591ce75834915 (diff)
parent9567015f1c049d5d2c9ff1c27547e577dec8430a (diff)
downloadPHPAuth-d22beff9a5d62e63dd67544a223dee9a27005d95.zip
PHPAuth-d22beff9a5d62e63dd67544a223dee9a27005d95.tar.gz
PHPAuth-d22beff9a5d62e63dd67544a223dee9a27005d95.tar.bz2
Merge pull request #163 from i4j5/master
Added PHPMailer namespace to use
-rw-r--r--.gitignore2
-rwxr-xr-xAuth.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8b7ef35
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/vendor
+composer.lock
diff --git a/Auth.php b/Auth.php
index 76a63be..a2e65fc 100755
--- a/Auth.php
+++ b/Auth.php
@@ -3,6 +3,7 @@
namespace PHPAuth;
use ZxcvbnPhp\Zxcvbn;
+use PHPMailer\PHPMailer\PHPMailer;
/***
* Auth class
@@ -762,7 +763,7 @@ class Auth
if($sendmail === true)
{
// Check configuration for SMTP parameters
- $mail = new \PHPMailer;
+ $mail = new PHPMailer;
if($this->config->smtp) {
$mail->isSMTP();
$mail->Host = $this->config->smtp_host;