phpmailer

This commit is contained in:
2023-02-08 00:59:52 +01:00
parent 1644fede7f
commit 6a7569147e
5 changed files with 69 additions and 32 deletions

View File

@ -1,5 +1,26 @@
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
//Load Composer's autoloader
require '../../../vendor/autoload.php';
class CNetcupMailer extends PHPMailer
{
public function __construct($debug = false)
{
parent::__construct($debug);
$this->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug 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`
}
}
class CMsg
{
var $success;