сделал так в файле component.php компонент main:feedback
if(!CModule::IncludeModule("iblock")) return;
if (!empty($_POST['tovid'])) {
$arSelect = Array("ID", "NAME", "PROPERTY_MORE_PHOTO", "PROPERTY_PRICE1");
$arFilter = Array("IBLOCK_ID"=>3, "ID"=>$_POST["tovid"], "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>50), $arSelect);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
//print_r($arFields);
$tovar[]=$arFields;
}
$rsFile = CFile::GetByID($tovar[0]["PROPERTY_MORE_PHOTO_VALUE"]);
$arFile = $rsFile->Fetch();
//print_r($arFile);
$imgsrc="/upload/".$arFile['SUBDIR']."/".$arFile['FILE_NAME'];
$img = "<img alt='Изображение товара' src='".$imgsrc."' style='border:medium;display:inline-block;font-size:14px;font-weight:bold;height:auto;margin-right:20px;max-width:110px;text-decoration:none;text-transform:capitalize;vertical-align:middle' class='CToWUd'>";
}
if($recaptcha_success > 0.5)
{
$arFields = Array(
"AUTHOR" => $_POST["user_name"],
"AUTHOR_EMAIL" => $_POST["user_email"],
"PHONE" => $_POST["user_phone"],
"EMAIL_TO" => $arParams["EMAIL_TO"],
"TEXT" => $_POST["MESSAGE"],
"FILE_NAME" => $_FILES['file']['name'],
"TOV_IMG" => $imgsrc,
"TOV_NAME" => $tovar[0]["NAME"],
"TOV_PRICE" => $tovar[0]["PROPERTY_PRICE1_VALUE"],
"TOV_ID" =>$_POST["tovid"],
"IMG" => $img
);