Web email form not working 
Autor: Nektarios K.
Besucht 389,
Followers 1,
Geteilt 0
Hi there,
The web email form from the contact page is not working. I set it after sending to return to the home page, but unfortunately, come this as per the attached Word file.
Server PHP 8.5 stable.
Provider one.com
Regards,
Nek
Gepostet am

WebSite X5 only supports PHP 8.2, there are often problems with higher versions.
If I want to view the source code of the linked website in the Firefox browser, this message appears
----- Firefox -----
Content encoding error
The web page you are trying to open cannot be displayed because it uses an invalid or unknown form of compression.
Please contact the site owner to inform them of this issue.
-------------------
I don't know if the higher PHP version or the form of compression (which Firefox complains about) is causing the problems.
The Incomedia employees will be online here tomorrow during office hours in Italy.
Hello Nektarios,
I am sorry about the issue.
Checking the form, it seems PHP is not being executed properly.
I recommend using version 8.2 and making sure with your provider that the hosting space is set up with PHP properly enabled and running.
I remain available.
Autor
Hi there,
Thanks for your reply's
I'm setting the PHP to 8.2 stable.
Delete the website, clear the cache, and upload it again.
Clean browsers history, cache, and all data.
Open the site.
test.
same problem.
Rgds,
Hello,
please contact your provider so that they can investigate, as I mentioned the fact that the code is visible directly usually means PHP is not being executed on your hosting space.
I remain available.
Autor
Hi,
I have already sent them an email with the code return to me for investigation
Thanks
Autor
Hi there,
I was contacted by the provider and replied as per the attached photo.
I explained to them that I use the websitex5 from Incomedia, and is ready contact form with options
Data submission: Send data by email
Send email address if I checked only one option. Your e-mail address
User email address: I use the address I wish to receive the webmail
But still reply with the guidance as per the photo
As I understand it, he wants the code from the form to mention the provider's code that sent me, but how can I do that?
Please advise
Regards
As long as the web server used cannot process files with the ending .php but only displays the PHP code in the browser, the contact form cannot function.
The web hosting provider should actually know this.
The contact form works flawlessly with my web hosting provider.
----- For your test -----
Here my demo shop with contact form for testing, see
>> https://findelinks.de/123shop-hosteurope/kontakt.html (Demo Shop, no sales, just for testing)
After clicking "Send" it takes about 10 seconds until "OK" appears on the screen.
Autor
I do some tests with mxtoolbox with the following results
smtp
mx4.mailpod15-cph3.g1i.one.com Reverse DNS does not match SMTP Banner
mx2.mailpod15-cph3.g1i.one.com Reverse DNS does not match SMTP Banner
mx1.mailpod15-cph3.g1i.one.com Reverse DNS does not match SMTP Banner
mx3.mailpod15-cph3.g1i.one.com Reverse DNS does not match SMTP Banner
Pamsmaritime.com SOA Serial Number Format is Invalid
May the problem be because of that?
Please advice
Normally you don't need any tools, just provide the correct information on WebSite X5.
> The web hosting provider should know which type of script needs to be used - see 1.
> In most cases, a domain email address must be specified to send emails - see 2.
> The checkmark determines whether the old or new email script is used - see 3.
Some web host providers do not support the new email script, in which case uncheck the box at 3.
The big question:
Is the WebSite X5 program used to export the website to the Internet or is there also an attempt to work with external programs, i.e. an FTP program?
----- Screenshot (German version of WebSite X5) -----
Autor
Dear Daniel,
Thanks for your reply.
Yes, No. 1 confirms it is a PHP mailer
No. 2 confirms a valid website email address
No. 3 confirms the check. Allow sending from an alternative address
Yes, I use Websitex5 to export the site using SFTP-SSH Transfer file protocol.
One.com sends me a code to replay in the imEmailForm_*.php file. I downloaded from the file manager, changed these lines with the new ones, and uploaded the file. Check, same problem. I checked the code with the PHP online checker, no syntax error.
Rgds,
Nek
Normally, the user of WebSiteX5 does not have to insert PHP code into files for sending emails.
Any normal web hosting provider should be able to handle WebSitex5's contact form without the user having to insert PHP code.
I don't know how good ONE.COM's support is, but apparently their employee has no idea.
Hello Nektarios,
unfortunately the same issue persists: it seems PHP is not being executed as it should on the hosting space, and the code is instead visible on the page after sending the form.
Regardless of the parameters you are using for the sending of e-mails, this must definitely be addressed, what have they said about the fact that the code is displayed directly like that?
Autor
Dear Eric,
I sent them the code from the form (imEmailForm) as it is on the live site (copied from the server), along with the reply code from the site when I press send. The reply I received was "yes," which is correct and should execute normally, but nothing happens. I tested the reply code on several PHP testers and encountered the following problem: FATAL ERROR Uncaught Error: Call to undefined function basename() on line number 2. Even after clarifying this with the person I was communicating with, they insisted that the issue was with the PHP tester, even i tell them is from the live site.. They suggested checking the form on the live site, as the environment may not be the same as the PHP tester. (Or my English is extremely bad, or trying to have more time to solve the problem) However, this has not provided a solution. My main concern is that I have an updated version with a large application form, but if this problem persists, it will be useless to upload. Previously, I used one.com as my provider and did not encounter any issues with their contact form. I switched to a different provider due to sharing server space with four other websites, but now that I have returned to one.com, this problem has arisen. (The website is the same, only the domain name and email address have changed.)
Regarding the fact that the code is displayed directly like that, the contact form is said ....nothing just to add the code provided, but the results are the same.
Regards,
Hello Nektarios,
what do you mean by "Regarding the fact that the code is displayed directly like that, the contact form is said ....nothing just to add the code provided, but the results are the same."?
What was their exact reply when asked about why the code is displayed instead of being executed by the server?
Could you provide a copy of the project so that I can confirm whether it works on a different hosting space?
You can export it in Step 5 - Export, choosing the “Export the project” option to generate an IWZIP file.
You can then upload the file with SwissTransfer, TransferNow or similar services, and provide a download link to support @ incomedia.eu (without the spaces).
Thank you.
Autor
Dear Eric,
Finally, someone from his team replied to my email. They gave me specific instructions to identify the problem. It turned out that the issue stemmed from the htaccess file, which was blocking PHP. I relocated the file to the temp folder and confirmed that the webmail was working successfully. As a result, I had to find out which lines to remove from the file.
Thanks to everyone of his help
Regardsm
Nek
Autor
Dear Eric,
I was checking the htaccess file, and I found that, at the end automatic added from the previous provider
php -- BEGIN cPanel-generated handler etc etc.
I removed that and copied back the .htaccess to the root directory.
Working perfect.
Thanks again.
Regards,
Nek