GetBudgetName($_POST['dev']); global $mail2; $mail2 = ''; $mail2 = new htmlMimeMail(); $tpl2 = new Smarty; $tpl2->compile_dir = $physical_path['Site_Root']. 'templates_c/'; $sendinfo = $emails->GetEmailDetails1(EMAIL_CONTACT_SELLER); $mail2->setFrom($sendinfo->email_adress); $mail2->setSubject($sendinfo->email_subject); $tpl2->assign(array("en_service" => $_POST['en_service'], "en_service_desc" => $_POST['en_service_desc'], "it_service" => $_POST['it_service'], "it_service_desc" => $_POST['it_service_desc'], "Budgetvalue" => Get_Budget_Name($_POST['dev']), )); $mail_content_header = $tpl2->fetch("email_template:".EMAIL_HEADER); $mail_content_footer = $tpl2->fetch("email_template:".EMAIL_FOOTER); $mail_content_reg = $tpl2->fetch("email_template:".EMAIL_CONTACT_SELLER); $mail_html = "
".$mail_content_header."
".$mail_content_reg."
".$mail_content_footer."
"; $mail2->setHtml($mail_html); if($filename != NULL) { $dirname = $physical_path['Contact']; $file = $filename; $path = $dirname.$file; $mail2->addAttachment($mail2->getFile($path),$file); } $recevier = GetEmailAddress(md5($_POST['user_name'])); $result = $mail2->send(array($recevier)); $contact->Insert($_POST,$filename); header("location: contact_success.html"); exit(); } $new_user_name = $user->Check_User_ID($_GET['user_name']); // to check profile exist or not #Manage Portfolio Tpl $result2 = $development->View_Development_Order(); $Development_List = fillDbCombo($result2,'development_id','development_title'); $str = $_SERVER['HTTP_REFERER']; $str1 = substr(strrchr($str,'/'),1); if($str1 == 'all_portfolio.php') { $navigation = ''.$lang['Find_Portfolio'].''; $navigation1= ''; } elseif($str1 == 'seller_portfoilo_'.$_GET['user_name'].'.html') { $navigation = ''.$lang['Find_Portfolio'].''; $navigation1 = ''.$lang['All_portfolio'].$_GET['user_name'].''; $navigation2= ''; } else { $navigation =''.$lang['Find_Seller'].''; $navigation1= ''; } $tpl->assign(array("T_Body" => 'contact'. $config['tplEx'], "JavaScript" => array('contact.js'), "lang" => $lang, "Development_List" => $Development_List, "Action" => 'Send', "User_Id" => $_SESSION['User_Id'], "succMsg" => $msg, "new_user_name" => $new_user_name, "user_name" => $_GET['user_name'], "Recevier_id" => md5($_GET['user_name']), "navigation" => $navigation, "navigation1" => $navigation1, "navigation2" => $navigation2, )); $tpl->display('default_layout'. $config['tplEx']); ?>