<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;

class CNetcupMailer extends PHPMailer
{
    public function __construct($debug = false)
    {
        parent::__construct($debug);
//        $this->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output
        $this->SMTPDebug = SMTP::DEBUG_OFF; //no output
        $this->isSMTP(); //Send using SMTP
        $this->Host = 'mxe8bd.netcup.net'; //Set the SMTP server to send through
        $this->SMTPAuth = true; //Enable SMTP authentication
        $this->Username = 'dog@hope-fly.de'; //SMTP username
        $this->Password = 'DgQduKV6uBWXQcCqmAjL'; //SMTP password
        $this->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption
        $this->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
    }
}
?>
