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/deensekroon.komma-mediadesign.nl/wwwroot/testmail/mail.php
<?php
/*
include_once $_SERVER['DOCUMENT_ROOT'] . '/admin/lib/mail/php_mailer.class.php';

if(isset($_POST['submit']))
{

// From
$data['from_name']  = 'Deense Kroon';
$data['from_email'] = 'info@deensekroon.nl';

// To
$data['to_name']    = 'Deense Kroon';
$data['to_email']   = 'mike@komma.pro';

// Subject
$data['subject']    = 'Nieuwe order.';

// Message
$data['msg'] = "dit is een test vandaag";


$mail = new PHPMailer(TRUE);
try
{
    $mail->AddAddress($data['to_email'], $data['to_name']);
    $mail->SetFrom($data['from_email'], $data['from_name']);
    $mail->Subject = $data['subject'];
    $mail->MsgHTML($data['msg']);
    $mail->Send();

    return true;
}
catch (phpmailerException $e){}
return false;

}
else
{
    echo '<form action="" method="post">';
    echo '<input type="submit" name="submit" value="send"/>';
    echo '</form>';
}*/