<?php

require_once __DIR__ . '/mail_helper.php';

$result = send_app_email(
    'jayathilaka@gmail.com',
    'Test User',
    'SMTP Test - besttutor.lk',
    '<h2>SMTP Test</h2><p>This is a test email from besttutor.lk.</p>'
);

if ($result) {
    echo "EMAIL SENT SUCCESSFULLY";
} else {
    echo "EMAIL FAILED - CHECK PHP ERROR LOG";
}