From 4138b330b905af9e823569ceb73f12eb77af7478 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83> Date: Mon, 9 Mar 2020 15:25:10 +0000 Subject: [PATCH] destination mail ois flexible --- config.sample.php | 1 + submit.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.sample.php b/config.sample.php index 3ad0e8e..c1920b1 100644 --- a/config.sample.php +++ b/config.sample.php @@ -8,4 +8,5 @@ $mailUsername = 'mailuser'; // SMTP username $mailPassword = 'mailpasswd'; // SMTP password $mailSMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted +$mailDest = "someone@example.com"; diff --git a/submit.php b/submit.php index f4fab8a..aeca3a2 100644 --- a/submit.php +++ b/submit.php @@ -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