PDA

View Full Version : Bug in HTML Email if viewed in Outlook 2003



Greystoke
13-09-2010, 12:26
If the HTML Email that is received when a product is purchased is viewed in Outlook 2003, it shows corrupt in a text format.

FIX FOR THIS IS:

In shop/checkout_process.php around line 363:

Find:

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');


Replace with:

tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);


In shop/includes/modules/email/html_checkout_process.php find around line 67:

Find:

$html_email_order .= " <tr height=\"14\"> ";
$html_email_order .= " <td height=\"14\" width=\"100\" valign=\"top\" align=\"left\" style=\"font-family: Verdana, Arial, sans-serif; background: #f9f9f9; font-size: 12px; color: #000000;\">$Vardetail</td>";
$html_email_order .= " <td colspan=\"4\" width=\"300\" valign=\"top\" align=\"right\" style=\"font-family: Verdana, Arial, sans-serif; background: #f9f9f9; font-size: 12px; color: #000000;\">$Vartaxe</td>";
$html_email_order .= " </tr>";


Replace with:

$html_email_order .= " <tr height=\"14\"> ";
$html_email_order .= " <td colspan=\"5\" width=\"100%\" valign=\"top\" align=\"right\" style=\"text-align: right; font-family: Verdana, Arial, sans-serif; background: #f9f9f9; font-size: 12px; color: #000000;\">$Vartaxe</td>";
$html_email_order .= " </tr>";