<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>SMTP Test Email</title>
</head>
<body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f4f4f4;">
    <!-- Main Container -->
    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #f4f4f4; padding: 20px 0;">
        <tr>
            <td align="center">
                <!-- Email Container -->
                <table width="600" cellpadding="0" cellspacing="0" border="0" style="background-color: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
                    
                    <!-- Header with Monaco Red Background -->
                    <tr>
                        <td style="background-color: #a31515; padding: 30px; text-align: center;">
                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td align="center">
                                        <img src="{{logoUrl}}" alt="MonacoUSA" width="80" height="80" style="border-radius: 8px; margin-bottom: 15px;">
                                        <h1 style="color: #ffffff; font-size: 28px; font-weight: bold; margin: 0 0 8px 0;">SMTP Test Email</h1>
                                        <p style="color: #ffffff; font-size: 16px; margin: 0; opacity: 0.9;">Email Configuration Test</p>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                    <!-- Main Content -->
                    <tr>
                        <td style="padding: 40px 30px;">
                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                
                                <!-- Success Badge -->
                                <tr>
                                    <td style="padding-bottom: 30px; text-align: center;">
                                        <table cellpadding="0" cellspacing="0" border="0" style="margin: 0 auto;">
                                            <tr>
                                                <td style="background-color: #28a745; color: #ffffff; padding: 10px 20px; border-radius: 20px; font-weight: bold;">
                                                    ✅ SMTP Configuration Working!
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                
                                <!-- Main Message -->
                                <tr>
                                    <td style="padding-bottom: 30px;">
                                        <p style="color: #333333; font-size: 16px; line-height: 1.6; margin: 0;">
                                            Congratulations! This test email confirms that your SMTP email configuration is working correctly. 
                                            The MonacoUSA Portal email system is now ready to send emails.
                                        </p>
                                    </td>
                                </tr>
                                
                                <!-- Test Configuration Details -->
                                <tr>
                                    <td style="padding-bottom: 30px;">
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td style="background-color: #f8f9fa; border-left: 4px solid #a31515; padding: 20px; border-radius: 4px;">
                                                    <h3 style="color: #a31515; font-size: 18px; font-weight: bold; margin: 0 0 15px 0;">📊 Test Configuration Details</h3>
                                                    
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="25%" style="vertical-align: top; padding: 5px 10px 5px 0;">
                                                                <strong style="color: #333333;">Test Time:</strong>
                                                            </td>
                                                            <td style="padding: 5px 0; color: #333333; font-family: monospace;">
                                                                {{testTime}}
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="25%" style="vertical-align: top; padding: 5px 10px 5px 0;">
                                                                <strong style="color: #333333;">SMTP Host:</strong>
                                                            </td>
                                                            <td style="padding: 5px 0; color: #333333; font-family: monospace;">
                                                                {{smtpHost}}
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="25%" style="vertical-align: top; padding: 5px 10px 5px 0;">
                                                                <strong style="color: #333333;">From Address:</strong>
                                                            </td>
                                                            <td style="padding: 5px 0; color: #333333; font-family: monospace;">
                                                                {{fromAddress}}
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="25%" style="vertical-align: top; padding: 5px 10px 5px 0;">
                                                                <strong style="color: #333333;">Email Type:</strong>
                                                            </td>
                                                            <td style="padding: 5px 0; color: #333333;">
                                                                SMTP Configuration Test
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                
                                <!-- What This Means -->
                                <tr>
                                    <td style="padding-bottom: 30px;">
                                        <h3 style="color: #a31515; font-size: 18px; font-weight: bold; margin: 0 0 15px 0;">🎯 What This Means</h3>
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="30" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #28a745; font-weight: bold; font-size: 16px;">✅</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Connection Established:</strong> Successfully connected to your SMTP server
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="30" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #28a745; font-weight: bold; font-size: 16px;">✅</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Authentication Passed:</strong> SMTP credentials are correct and working
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="30" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #28a745; font-weight: bold; font-size: 16px;">✅</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Email Delivery:</strong> Emails can be sent from the portal
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="30" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #28a745; font-weight: bold; font-size: 16px;">✅</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Template System:</strong> Email templates are loading and rendering correctly
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                
                                <!-- Available Email Types -->
                                <tr>
                                    <td style="padding-bottom: 30px;">
                                        <h3 style="color: #a31515; font-size: 18px; font-weight: bold; margin: 0 0 15px 0;">📧 Available Email Types</h3>
                                        <p style="color: #333333; font-size: 16px; line-height: 1.6; margin: 0 0 15px 0;">Your portal can now send the following types of emails:</p>
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="20" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #a31515; font-weight: bold;">•</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Welcome Emails:</strong> New member registration confirmations
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="20" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #a31515; font-weight: bold;">•</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Email Verification:</strong> Account activation links
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="20" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #a31515; font-weight: bold;">•</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Password Reset:</strong> Secure password reset instructions
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="20" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #a31515; font-weight: bold;">•</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>Dues Reminders:</strong> Membership payment notifications
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 5px 0;">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="20" style="vertical-align: top; padding-right: 10px;">
                                                                <span style="color: #a31515; font-weight: bold;">•</span>
                                                            </td>
                                                            <td>
                                                                <p style="margin: 0; color: #333333; font-size: 16px;">
                                                                    <strong>General Notifications:</strong> Administrative communications
                                                                </p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                
                                <!-- Success Message -->
                                <tr>
                                    <td style="padding-bottom: 20px;">
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td style="background-color: rgba(40, 167, 69, 0.1); border-left: 4px solid #28a745; padding: 15px; border-radius: 4px;">
                                                    <p style="color: #155724; font-size: 16px; font-weight: bold; margin: 0;">
                                                        ✨ Success! Your email system is fully configured and operational. 
                                                        All automated emails from the MonacoUSA Portal will now be delivered successfully.
                                                    </p>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                
                            </table>
                        </td>
                    </tr>
                    
                    <!-- Footer -->
                    <tr>
                        <td style="background-color: #f8f9fa; padding: 30px; text-align: center; border-top: 1px solid #e9ecef;">
                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <h4 style="color: #333333; font-size: 18px; font-weight: bold; margin: 0 0 8px 0;">MonacoUSA Portal</h4>
                                        <p style="color: #666666; font-size: 14px; margin: 0 0 15px 0;">Email System Configuration Test</p>
                                        
                                        <!-- Links -->
                                        <table cellpadding="0" cellspacing="0" border="0" style="margin: 0 auto;">
                                            <tr>
                                                <td style="padding: 0 10px;">
                                                    <a href="https://portal.monacousa.org" style="color: #a31515; text-decoration: none; font-size: 14px;">Portal</a>
                                                </td>
                                                <td style="padding: 0 10px; color: #cccccc;">|</td>
                                                <td style="padding: 0 10px;">
                                                    <a href="mailto:admin@monacousa.org" style="color: #a31515; text-decoration: none; font-size: 14px;">Admin Support</a>
                                                </td>
                                            </tr>
                                        </table>
                                        
                                        <!-- Email Info -->
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top: 20px;">
                                            <tr>
                                                <td style="padding-top: 15px; border-top: 1px solid #dddddd;">
                                                    <p style="color: #999999; font-size: 12px; margin: 0;">
                                                        This is an automated test email to verify SMTP configuration.<br>
                                                        Generated by MonacoUSA Portal Email System
                                                    </p>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
