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 $mailPassword = 'mailpasswd'; // SMTP password
$mailSMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted $mailSMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
$mailDest = "someone@example.com";

View file

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