HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/ledub.komma.pro/wwwroot/notify.php
<?php
/**
 * Created by PhpStorm.
 * User: joepvanhunsel
 * Date: 17-02-14
 * Time: 10:26
 */

include("all_kms_con.php");

$sisow_id = $_GET['trxid'];
$inschrijving_id = $_GET['ec'];
$status = $_GET['status'];


$q_cases = sprintf("UPDATE kms_inschrijvingen SET sisow_id='%s'    WHERE inschrijving_id = '%s'", $sisow_id, $inschrijving_id);
$r_cases = mysql_query($q_cases);

if ($_GET['status']!="Success")
{
    $q_cases = sprintf("SELECT kms_inschrijvingen.teamnaam FROM kms_inschrijvingen WHERE kms_inschrijvingen.inschrijving_id='%s'", $inschrijving_id);
    $r_cases = mysql_query($q_cases);
    $rec_cases = mysql_fetch_array($r_cases);

    $teamnaam = $rec_cases['teamnaam'];

    require_once 'css-js/phpmailer/class.phpmailer.php';


    $bericht_klant = "<body style=\"margin: 10px; background-color:#fff;\" >

<style>
a{
	color:#00A6D6;
	text-decoration:underline;
}
</style>
<div style=\"color:#231f20; font-family:Verdana,Geneva,sans-serif; font-size:11px; line-height:18px; padding-bottom:23px; width: 800px;\">

Beste Marco,<br><br>

Er is een fout opgetreden bij de betaling van team: $teamnaam<br><br>

Het team is hiervan op de hoogte gesteld en wacht op een een reactie van vc Ledub.<br><br>

De terugkoppeling van de status bij Sisow: $status.<br />

<br><br><br>
Met vriendelijke groet,<br>
Komma Management Systeem
</div>
</body>";

    $from = "joep@komma.pro";
    $from_naam = "Ledûb Volleybal";
    $onderwerp = "Bevestiging inschrijving Ledûbtoernooi";

    $mail_klant = new PHPMailer(true); //defaults to using php "mail()"; the true param means it will throw exceptions on errors, which we need to catch

    try {
        $mail_klant->AddReplyTo($from , $from_naam);
        $mail_klant->AddAddress($from, $from_naam);
        $mail_klant->SetFrom($from, $from_naam);
        $mail_klant->AddReplyTo($from , $from_naam);
        $mail_klant->Subject = 'Betaling '.$teamnaam ;
        $mail_klant->MsgHTML($bericht_klant);
        $mail_klant->Send();
        $mail_klant_send = true;
    } catch (phpmailerException $e) {
        $mail_klant_send = false;
        echo $e->errorMessage(); //Pretty error messages from PHPMailer
    } catch (Exception $e) {
        $mail_klant_send = false;
        echo $e->getMessage(); //Boring error messages from anything else!
    }
}