summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;