Sending E-mail Forms 
Autor: W.J. K.
Visited 244,
Followers 1,
Udostępniony 0
I can also no longer send e-mail forms, I have chosen the php option as mentioned in the help. but it will not work, what could be the cause of this? Previously it worked great for this.
Regards,
W.J.Kes
Posted on the

Hi W.J. K.,
access the online panel of the website "/ admin" and check in the Website Test that all entries are PASS.
The cause could be an unsupported or old PHP. You can check in cPannel or ask your hosting service.
To better analyze the problem, please attach the error screenshot and the relative URL.
In some cases, incorrect export or overwriting can cause similar errors. For further clarification and support, wait for an answer from the team of Incomedia.
Hello.
Autor
Thank you for your answer, I have offered all the methods used by you but unfortunately it may not help. I approached my provider and provided the necessary screenshots, they investigated the problem but according to them there is nothing wrong with them. Everything works as it should and I have full access to all the web folders, my provider thinks there is a script error in the program. I have already tried everything but the problem is not over, unfortunately, I really do not know what to do anymore. It is a shame that the previous version worked well, which makes you think.
I am sorry for the problems you are experiencing and i understand the situation.
The most common explanation is that your site is hosted on a windows server or has a lower PHP than that required by the program.
You could try to regenerate the project and export it again to a special folder (eg / test).
Export a security copy of the site.
Go to the "Incomedia" folder created by the program on your PC. Open the folder where the files of the project in question reside and delete the "Preview and Upload" folders.
After doing this, open the project in the program and view the previews on the page where the email form is present.
After doing this, export the site to a new folder on the server.
Perform the necessary tests. In case of a negative result, please let we know, communicating a screenshot of the error that appears and the relative URL.
For a correct and complete assistance you can make the post private to receive feedback from the Incomedia team.
Eventually you could send the project to be able to analyze the problem in detail.
Autor
I have really tried everything and installed the latest update but nothing helps. My customers cannot contact my company now. I am still waiting a few days then I have to buy another program, that is no longer the case.
I sent a notification about your situation to Incomedia staff.
Hello WJ Kes,
PLease check the mail you use, it could well be that your provider has made some security changes.
If you have one.com as provider (for instance), they demand that the mail used to send the form from is also from one.com, if it is from another host (like hotmail or gmail or whatever...) then they won't give acces to the form to be send.
So check in your admin panel as already stated and see if mail arrives with the mail adres you use or try a mail adres from the provder. Or check from the mail form, use a mail adres from provider and see if this has helped. offcource from customer can be another mail adres.
In most cases the problem is in the security check from provider and not x5.
Let me know how this has worked out!
Best Regards
MVG
Andre
Autor
Dear André
I'm going to send this message to my provider maybe they can do something with this. Coincidentally, I received another e-mail from the provider asking which php version evo x5 needs, maybe you can tell me this? Also here a screenshot of the admin folder, I can't understand much about this, I don't see an e-mail address reference or something similar. but I don't know much about this either.
Thanks for your reply.
Greetings, W.J.Kes
Autor
Here is also a text from the map website test.
Maybe this is also important
<?php
include "includes.php";
Configuration::getControlPanel()->accessOrRedirect();
$results = imTest::testWsx5Configuration();
if (isset($_POST['send'])) {
$attachment = array();
if (is_uploaded_file($_FILES['attachment']['tmp_name']) && file_exists($_FILES['attachment']['tmp_name'])) {
$attachment = array(array(
"name" => $_FILES['attachment']['name'],
"mime" => $_FILES['attachment']['type'],
"content" => file_get_contents($_FILES['attachment']['tmp_name'])
));
}
$mailer = new ImSendEmail();
if ($_POST['type'] == 'phpmailer' || $_POST['type'] == 'phpmailer-smtp') {
$mailer->emailType = 'phpmailer';
if ($_POST['type'] == 'phpmailer-smtp') {
$mailer->use_smtp = true;
$mailer->smtp_port = $_POST['smtpport'];
$mailer->smtp_host = $_POST['smtphost'];
$mailer->smtp_encryption = $_POST['smtpencryption'];
if (@$_POST['smtpauth'] == "1") {
$mailer->use_smtp_auth = true;
$mailer->smtp_username = $_POST['smtpusername'];
$mailer->smtp_password = $_POST['smtppassword'];
}
}
} else {
$mailer->emailType = $_POST['type'];
}
$result = $mailer->send($_POST['from'], $_POST['to'], $_POST['subject'], strip_tags($_POST['body']), nl2br($_POST['body']), $attachment);
// Save the test data for this session
$_SESSION['form_test_type'] = $_POST['type'];
$_SESSION['form_test_from'] = $_POST['from'];
$_SESSION['form_test_to'] = $_POST['to'];
$_SESSION['form_test_subject'] = $_POST['subject'];
$_SESSION['form_test_body'] = $_POST['body'];
$_SESSION['form_test_smtphost'] = $_POST['smtphost'];
$_SESSION['form_test_smtpport'] = $_POST['smtpport'];
$_SESSION['form_test_smtpencryption'] = $_POST['smtpencryption'];
$_SESSION['form_test_smtpauth'] = @$_POST['smtpauth'];
$_SESSION['form_test_smtpusername'] = $_POST['smtpusername'];
echo "<script>window.top.location.href = 'sitetest.php?result=" . ($result ? 1 : 0) . "';</script>";
exit();
}
// Load the main template
$mainT = Configuration::getControlPanel()->getMainTemplate();
$mainT->pagetitle = l10n('admin_test', 'Website Test');
$mainT->stylesheets = array("css/sitetest.css");
$mainT->content = "";
$contentT = new Template("templates/common/box.php");
$contentT->cssClass = "sitetest";
$contentT->content = "";
// Show the system tests
$testT = new Template("templates/sitetest/system-tests.php");
$testT->tests = $results;
$contentT->content .= $testT->render();
// Show the email form
$emailT = new Template("templates/sitetest/email-form.php");
$contentT->content .= $emailT->render();
// Read the log
$path = pathCombine(array("../", $imSettings['general']['public_folder'], "email_log.txt"));
if (file_exists($path) && function_exists("file_get_contents")) {
$logT = new Template("templates/sitetest/log.php");
$logT->log = file_get_contents($path);
$contentT->content .= $logT->render();
}
$mainT->content = $contentT->render();
echo $mainT->render();
I don't see a screenshot of the test from the admin panel.
Write /admin behind your website name and login with data from x5 (user name and login) do the test and make prtscrn of this.
PHHP 7 or higher is good enough for x5
Autor
Dear users and moderators, I want to thank you for the help offered, I appreciate that very much. Fortunately the problem has now been resolved, it turned out that my provider did indeed have a low PhP version on their server PhP 5.2. They moved my site to a sister company that has a PhP 7.2 server and now everything works perfectly again. I can only make my site over again because I have been working like that, and have even installed a new template, but yes I will get over it again, I am happy that everything now works again.
Many regards,
W.J.Kes
(Translated with Google with google)
Autor