In what ways can the structure and content of HTML tables generated by PHP affect the display in Outlook email clients?

When generating HTML tables in PHP for Outlook email clients, it's important to ensure that the structure and content of the tables are simple and well-formatted. Outlook has limited support for CSS styles and may not render complex table structures correctly. To ensure proper display, keep the tables basic with minimal styling and avoid nested tables or complex layouts.

// Example of a simple HTML table structure for Outlook email clients
$html = '<table border="1" cellpadding="5" cellspacing="0">';
$html .= '<tr><th>Header 1</th><th>Header 2</th></tr>';
$html .= '<tr><td>Data 1</td><td>Data 2</td></tr>';
$html .= '</table>';

// Send email with the HTML table content
mail('recipient@example.com', 'Subject', $html, 'Content-Type: text/html');