<tr>
<td class="class_1">1</td>
<td class="class_2">2</td>
<td class="class_1">1</td>
<td class="class_2">2</td>
</tr>
<tr>
<td class="class_1">1</td>
<td class="class_2">2</td>
</tr>
<table>
<tbody>
<tr>
<td class="class_1">1</td>
<td class="class_2">2</td>
<td class="class_1">1</td>
<td class="class_2">2</td>
</tr>
<tr>
<td class="class_1">1</td>
<td class="class_2">2</td>
<td class="class_3">3</td>
<td class="class_3">3</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td class="class_1">1</td>
<td class="class_2">2</td>
<td class="class_3">3</td>
<td class="class_1">1</td>
<td class="class_2">2</td>
</tr>
<tr>
<td class="class_2">2</td>
<td class="class_3">3</td>
<td class="class_1">1</td>
<td class="class_2">2</td>
</tr>
</tbody>
</table>
AddEventHandler("sale", "OnOrderNewSendEmail", "ModifySaleMails");
function ModifySaleMails($orderID, &$eventName, &$arFields)
{
$phone = "";
$city = "";
$serial = "";
$number = "";
$datei = "";
$order_props = CSaleOrderPropsValue::GetOrderProps($orderID);
while ($arProps = $order_props->Fetch())
{
if ($arProps["CODE"] == "PHONE")
{
$phone = $arProps["VALUE"];
}
if ($arProps["CODE"] == "CITY")
{
$city = $arProps["VALUE"];
}
if ($arProps["CODE"] == "SERIAL")
{
$serial = $arProps["VALUE"];
}
if ($arProps["CODE"] == "NUMBER")
{
$number = $arProps["VALUE"];
}
if ($arProps["CODE"] == "DATEI")
{
$datei = $arProps["VALUE"];
}
}
$arFields["PHONE"] = $phone;
$arFields["CITY"] = $city;
$arFields["SERIAL"] = $serial;
$arFields["NUMBER"] = $number;
$arFields["DATEI"] = $datei;
}