Uses $mailFrom, and in addition there is no certificate verfification for SMTP, currently
This commit is contained in:
parent
92983db60a
commit
046ed5cfc2
11
submit.php
11
submit.php
|
@ -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…
Reference in New Issue