Uses $mailFrom, and in addition there is no certificate verfification for SMTP, currently
This commit is contained in:
parent
92983db60a
commit
046ed5cfc2
1 changed files with 10 additions and 1 deletions
11
submit.php
11
submit.php
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue