Corrected the reference to the PHPMailer class

This commit is contained in:
Alex Tselegidis 2020-08-15 19:00:13 +03:00
parent 6cbb13dc2d
commit c437c650b3

View file

@ -17,6 +17,7 @@ use \EA\Engine\Types\Text;
use \EA\Engine\Types\NonEmptyText; use \EA\Engine\Types\NonEmptyText;
use \EA\Engine\Types\Url; use \EA\Engine\Types\Url;
use \EA\Engine\Types\Email as EmailAddress; use \EA\Engine\Types\Email as EmailAddress;
use \PHPMailer\PHPMailer\PHPMailer;
/** /**
* Email Notifications Class * Email Notifications Class
@ -282,11 +283,11 @@ class Email {
/** /**
* Create PHP Mailer Instance * Create PHP Mailer Instance
* *
* @return \PHPMailer * @return PHPMailer
*/ */
protected function _createMailer() protected function _createMailer()
{ {
$mailer = new \PHPMailer; $mailer = new PHPMailer();
if ($this->config['protocol'] === 'smtp') if ($this->config['protocol'] === 'smtp')
{ {