Current Path : /data/web/virtuals/51568/virtual/www/subdom/agenda.1/php/ |
Current File : /data/web/virtuals/51568/virtual/www/subdom/agenda.1/php/Mailer.php |
<?php require '../PHPMailer/src/Exception.php'; require '../PHPMailer/src/PHPMailer.php'; require '../PHPMailer/src/SMTP.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; class Mailer { public $mail; public function __construct() { $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Mailer = "smtp"; $mail->setLanguage('cs'); $mail->CharSet = PHPMailer::CHARSET_UTF8; $mail->SMTPDebug = 0; $mail->SMTPAuth = TRUE; $mail->SMTPSecure = "tls"; $mail->Port = 587; $mail->Host = "wes1-smtp.wedos.net"; $mail->Username = "mailer@zsrepubliky.cz"; $mail->Password = "Mail*er*2022"; $mail->SetFrom("mailer@zsrepubliky.cz", "Pošťák zsrepubliky.cz"); $mail->isHTML(TRUE); $this->mail = $mail; } }