App/var/70_mail.php

17 lines
831 B
PHP
Executable File

<?php #var/70_mail.php
define("MAILNOREPLY", "innenstadt.webserver@feuerwehr-bs.net");
$mail = new PHPMailer\PHPMailer\PHPMailer();
//Server settings
$mail->SMTPDebug = 0; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'feuerwehr-bs.net'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'innenstadt.webserver'; // SMTP username
$mail->Password = 'mZYKP970Gj8RLx9f6V7pZHFOlJbn1tDJhf58'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$mail->CharSet = 'UTF-8';
$mail->Encoding = 'base64';