Browse Source

destination mail ois flexible

currency
7u83 4 years ago
parent
commit
4138b330b9
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      config.sample.php
  2. +2
    -2
      submit.php

+ 1
- 0
config.sample.php 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";

+ 2
- 2
submit.php 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->AddAddress("tube@surfpoeten.de");
$mail->Body = "Kostenerstattungsantrag ...";
$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

Loading…
Cancel
Save