destination mail ois flexible

This commit is contained in:
7u83 2020-03-09 15:25:10 +00:00
parent c2ca7d8996
commit 4138b330b9
2 changed files with 3 additions and 2 deletions

View File

@ -8,4 +8,5 @@ $mailUsername = 'mailuser'; // SMTP username
$mailPassword = 'mailpasswd'; // SMTP password
$mailSMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
$mailDest = "someone@example.com";

View File

@ -417,8 +417,8 @@ if ($_POST['sendmail']=='yes'){
$mail->IsSMTP();
$mail->setFrom("noc@wikimedia.de");
$mail->Subject = $subj;
$mail->Body = "Kostenerstattungsantragi ...";
$mail->AddAddress("tube@surfpoeten.de");
$mail->Body = "Kostenerstattungsantrag ...";
$mail->AddAddress($mailDest);
$mail->AddAttachment( $file , 'antrag.pdf' );
$mail->Host = $mailHost; // Specify main and backup server