E mail form does not work anymore
Autor: Henk H.
Visitado 3889,
Followers 1,
Compartido 0
email form does not work anymore
Publicado en
email form does not work anymore
Hello Henk,
Could you please elaborate ? It does not work anymore but what did you change before it stops working ? Have you already tried to make a "Full export" ? Is your mail account well working at the moment ? Any issue by your hosting provider about ? Thanks
Autor
I have build many sites without a problem, but with the last one I made the email form doesnot work if i say send the screen says :
<?php $settings['imEmailForm_11_14'] = array( "owner_email_from" => "***", "owner_email_to" => "***", "customer_email_from" => "***", "customer_email_to" => "", "owner_message" => "testbericht", "customer_message" => "", "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' => 'test', 'value' => $_POST['imObjectForm_14_1']) ); $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_11_14'], $form_data, $files_data); @header('Location: ' . $settings['imEmailForm_11_14']['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
Does your host allow PHP ? If the content of the script is displayed than it shows the code has not been exectuted.
Autor
it stil does not work my e mail account is the same, i changed nothing in the settings.
how do I make a full export?
Hello Henk,
It seems that your Webhosting space has no PHP support and for the Email Form you need to have PHP support on your hosting server.
Please feel free to write back if you need more information.
I have a similar problem,
E-mail form works well, but if I add "attachment file", or set "send CSV" in form options, email never arrive.
Hello Jano,
Please try to change Script Type in Step 4 - Data Management - and then export the project again and check if it works.
It can depend on the fact that the used script is not completely supported by the Hosting Provider.
Please keep me updated.
so,
if I set Low quality server script (post or get), nothing arrive
if I set Low level script, email come, but without attachment
Hello Jano,
Did you try also with a new project to check if it works?
It could be that the hosting provider is not allowing attachments with the PHP mail() function. It would be usefull to ask them if they support attachments with this function.
Many thanks!
Hallo Claudio,
yes, I try brand new project, load it to windows and linux server - with same result - without attachment mail comes, with attachment no.
I contact admin of my webhosting to check logs, and there is his answer:
"the script doesn't try to send email (1st row) and then comes two rows with error 304. Therefore scrpts doesn't send message"
194.228.32.101 - - [06/May/2013:10:24:28 +0200] "GET /pracovne-prilezitosti.php HTTP/1.1" 200 2226
194.228.32.101 - - [06/May/2013:10:24:28 +0200] "GET /res/jquery.js?28 HTTP/1.1" 304 -
194.228.32.101 - - [06/May/2013:10:24:28 +0200] "GET /res/x5engine.js?28 HTTP/1.1" 304 -
Hello Jano,
This log file is from the website when it's seen and it's not the mail log. If the emails with attachment are not arriving then it means that the smtp server is not supporting this function or it is blocked. You need to ask the Hosting Admin if with the PHP mail() function the attachments are allowed or if they can be activated.
Please keep me updated.