<?php
/*
 * Million Dollar Script Two
 *
 * @author      Ryan Rhode
 * @copyright   (C) 2025, Ryan Rhode
 * @license     https://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *    Million Dollar Script
 *    Pixels to Profit: Ignite Your Revolution
 *    https://milliondollarscript.com/
 *
 */

defined( 'ABSPATH' ) or exit;

global $wpdb;
$sql    = "SELECT * FROM " . MDS_DB_PREFIX . "mail_queue where mail_id=" . intval( $_REQUEST['mail_id'] );
$row    = $wpdb->get_row( $sql, ARRAY_A );
?>

<table border="1" id="table1" width="600">
    <tr>
        <td width="118">Template ID:</td>
        <td width="322"><?php echo $row['template_id']; ?></td>
    </tr>
    <tr>
        <td width="118">To Name:</td>
        <td width="322"><?php echo $row['to_name']; ?></td>
    </tr>
    <tr>
        <td width="118">To Address:</td>
        <td width="322"><?php echo $row['to_address']; ?></td>
    </tr>
    <tr>
        <td width="118">From Name:</td>
        <td width="322"><?php echo $row['from_name']; ?></td>
    </tr>
    <tr>
        <td width="118">From Address:</td>
        <td width="322"><?php echo $row['from_address']; ?></td>
    </tr>
    <tr>
        <td width="118">Subject:</td>
        <td width="322"><?php echo $row['subject']; ?></td>
    </tr>
    <tr>
        <td width="118">Message (text)</td>
        <td width="322"></td>
    </tr>
    <tr>
        <td colspan="2">
            <pre><?php echo $row['message']; ?></pre>
        </td>
    </tr>
    <tr>
        <td width="118">Message (HTML)</td>
        <td width="322"></td>
    </tr>
    <tr>
        <td colspan="2"><?php echo $row['html_message']; ?></td>
    </tr>
    <tr>
        <td width="118">Attachments</td>
        <td width="322"><?php echo $row['att1_name']; ?><br>
			<?php echo $row['att2_name']; ?><br>
			<?php echo $row['att3_name']; ?><br>
        </td>
    </tr>
</table>

