destination mail ois flexible
This commit is contained in:
parent
c2ca7d8996
commit
4138b330b9
2 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue