| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct() |
||
| 14 | { |
||
| 15 | $config = Application::getEmailConfig(); |
||
| 16 | $this->mailer = new PHPMailer(); |
||
| 17 | $this->mailer->isSMTP(); |
||
| 18 | //$this->mailer->SMTPDebug = SMTP::DEBUG_SERVER; |
||
| 19 | |||
| 20 | $this->mailer->Host = $config->host; |
||
| 21 | $this->mailer->Port = 465; |
||
| 22 | $this->mailer->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; |
||
| 23 | $this->mailer->setFrom($config->username, $config->fromName); |
||
| 24 | $this->mailer->SMTPAuth = true; |
||
| 25 | $this->mailer->Username = $config->username; |
||
| 26 | $this->mailer->Password = $config->password; |
||
| 27 | $this->mailer->addReplyTo($config->replyTo, $config->replyToName); |
||
| 28 | } |
||
| 45 |