SetBulkMail(1); $email_message->SetEncodedEmailHeader("From",$from_address,$from_name); $email_message->SetEncodedEmailHeader("Reply-To",$reply_address,$reply_name); $email_message->SetEncodedEmailHeader("To",$to_address,$to_name); $email_message->SetEncodedHeader("Subject",$subject); $email_message->cache_body=0; //HTML $html_smarty=new Smarty; $text_smarty=new Smarty; $html_smarty->template_dir = CMS_ROOT_PATH . 'themes/default/templates/'; $html_smarty->compile_dir = CMS_ROOT_PATH . 'themes/default/templates_c/'; $html_smarty->assign('theme_dir', CMS_ROOT_PATH . 'themes/default'); $html_smarty->assign('fields', $_POST); //text $text_smarty->template_dir = CMS_ROOT_PATH . 'themes/default/templates/'; $text_smarty->compile_dir = CMS_ROOT_PATH . 'themes/default/templates_c/'; $text_smarty->assign('theme_dir', CMS_ROOT_PATH . 'themes/default'); $text_smarty->assign('fields', $_POST); $html_message=$html_smarty->fetch("contact.html.tpl"); $email_message->CreateQuotedPrintableHTMLPart($html_message,"",$html_part); $text_message=$text_smarty->fetch("contact.txt.tpl"); $email_message->CreateQuotedPrintableTextPart($email_message->WrapText($text_message),"",$text_part); $alternative_parts=array( $text_part, $html_part ); $email_message->AddAlternativeMultipart($alternative_parts); $error=$email_message->Send(); $email_message->SetBulkMail(0); if(strcmp($error,"")) $mail_result = $error; else { $mail_result = "Votre demande a bien été envoyée, elle sera traitée dès que possible.
"; $_SESSION["contact_form"] = true; } } unset($Page['Visuel'][0]); $plan = searchFile("/modules/contenu/assets/pages/img_".$Page['pageKey']); if($picture) { $planInfos = howToInsertImage($plan, "300x", "adapt"); $planVignette = $planInfos[0]; $Page['Visuel']['plan']['thumb'] = $planVignette; $Page['Visuel']['plan']['zoom'] = $plan; $Page['Visuel']['plan']['titre'] = "Plan de situation"; $Site['plugins'][] = "multibox"; } if($_SESSION["contact_form"]) $mail_result = "Votre demande a bien été envoyée, elle sera traitée dès que possible.
"; $Page['contentBox'] = 'contact.tpl'; $Page['File'] = 'contact_form.tpl'; $Page['mail_result'] = $mail_result; ?> Shamstours : Entreprise - Contact
newsletter

Pas encore enregistré ?

réserver ? 021 547 276
Contact

Siège Social

Adresse:

Coopérative Immo Milit Lots N°29, Draria, Alger, Algérie

Tél/ Fax. : +213 21 352180 

Tél: +213 21 352180


 

E.mail : contact@shamstours.com