Browse Source

Uses $mailFrom, and in addition there is no certificate verfification for SMTP, currently

currency
7u83 4 years ago
parent
commit
046ed5cfc2
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      submit.php

+ 10
- 1
submit.php View File

@ -413,9 +413,18 @@ $file = "$resultnam.pdf";
if ($_POST['sendmail']=='yes'){
$subj = "Kostenerstattungsantrag ueber".calcSum()." EUR";
$mail = new PHPMailer\PHPMailer\PHPMailer();
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
$mail->IsSMTP();
$mail->setFrom("noc@wikimedia.de");
$mail->setFrom($mailFrom);
$mail->Subject = $subj;
$mail->Body = "Kostenerstattungsantrag ...";
$mail->AddAddress($mailDest);

Loading…
Cancel
Save