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

This commit is contained in:
7u83 2020-04-16 07:23:12 +00:00
parent 92983db60a
commit 046ed5cfc2
1 changed files with 10 additions and 1 deletions

View File

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