WebSite X5Help Center

 
Francos H.
Francos H.
User

Email form  en

Auteur : Francos H.
Visité 732, Followers 1, Partagé 0  
Mots-clés :: email,form

HI I have set up an email form on the website but when people complete and press send they get a funny message "E Mail", "owner_email_to" => "***", "customer_email_from" => "***", "customer_email_to" => "", "owner_message" => "", "customer_message" => "Many thanks for your enquiry a consultant will contact you shortly. Regards Nastep Western Cape", "owner_subject" => "", "customer_subject" => "", "owner_csv" => False, "customer_csv" => False, "confirmation_page" => "../index.html" ); if(substr(basename($_SERVER['PHP_SELF']), 0, 11) == "imEmailForm") { include "../res/x5engine.php"; $answers = array( ); $form_data = array( array('label' => 'Name', 'value' => $_POST['imObjectForm_42_1']), array('label' => 'Surname', 'value' => $_POST['imObjectForm_42_2']), array('label' => 'Landline', 'value' => $_POST['imObjectForm_42_3']), array('label' => 'Mobile', 'value' => $_POST['imObjectForm_42_4']), array('label' => 'E Mail', 'value' => $_POST['imObjectForm_42_5']), array('label' => 'Street Address', 'value' => $_POST['imObjectForm_42_6']), array('label' => 'Suburb', 'value' => $_POST['imObjectForm_42_7']), array('label' => 'Problem - What do you need?', 'value' => $_POST['imObjectForm_42_8']), array('label' => 'Geyser Size', 'value' => $_POST['imObjectForm_42_9']), array('label' => 'Position of Geyser', 'value' => $_POST['imObjectForm_42_10']), array('label' => 'Typically we recommend installing a solar geyser with heat collector as it offers clients the greatest saving in electricity but acknowledge that there are times when a heat pump makes more sense. Please tell us more about what it is that we can assist with.', 'value' => $_POST['imObjectForm_42_11']) ); $files_data = array( ); if(@$_POST['action'] != "check_answer") { if(!isset($_POST['imJsCheck']) || $_POST['imJsCheck'] != "jsactive") die(imPrintJsError()); if(isset($_POST['imSpProt']) && $_POST['imSpProt'] != "") die(imPrintJsError()); $email = new imSendEmail(); $email->sendFormEmail($settings['imEmailForm_0_42'], $form_data, $files_data); @header('Location: ' . $settings['imEmailForm_0_42']['confirmation_page']); } else { if(@$_POST['id'] == "" || @$_POST['answer'] == "" || strtolower(trim($answers[@$_POST['id']])) != strtolower(trim(@$_POST['answer']))) echo "0"; else echo "1"; } } // End of file

Posté le
1 RéPONSES
Samuel V.
Samuel V.
User

Hello,

PHP has to be enabled on your server to be able to use the script that sends the form via email. Perhaps should you check with your webhost ?

Regards,

Sam

Lire plus
Posté le de Samuel V.