Contact form e-mail

I have just started converting my site from classic to elements, and have not spent hours and hours trying to get e-mail sent from my contact form. I used the Contact us template. On the Classic foundry site, it appears all I set was my address and IONOS (1and1) was happy, Is there a video or other guidence that can help?

Thanks for the reply, that was where I started. I think I may have figured it out. My test site did not have ssl. I am working with IONOS, as I think this is a problem on there side. I only mentioned it here in case someone is using IONOS (1and1) and had suggestions.

Lots more hours, and I still do not have a working contact form. I think I need a take a break, The site is currently running flawlessly in Classic.

You’re not alone, I too have tried and tried and can’t seem to nail down why it’s not working. Hopefully developers will lend a hand! I sent my project to them a few days ago.

Anything back from the developers? I sent my site in, but then sent another e-mail and told them not to waste thier time, as a was moving on to anther application. I was frustrated I need only the contact form and a means to upload files to my site to be finished with my first rewrite. I had cancelled my subscription, but then realized I was going to have a steep learning curve no matter what I use. So I restarted my subscription and will rough it out.Please let me know if you hear anything.

1 Like

Just wanted to say… once you lock in the settings it will be easier….

It took me sometime to get it, and then once I had it could literally take that section and copy paste to my other websites for their forms

I posted many screenshots to ask for help…

Hang in there!

People on the forum might be able to help if we know what you have tried. The number one thing is to make sure you are on the right version of PHP 8.1 or higher. I have five sites all with working contact forms. Initially, it took some effort to get them to work but once I had it figured out it becamse straight forward. Also make sure your contact page is set to PHP and not HTML.

got mine working after many attempts but might have to stop using as im getting spam which is filtered by my host….tried setting up hCapture couldn’t get it working…posted here in the forum days ago….didnt even get a reply!!!

Didn’t know it had to be set to php!!!
All of mine are html and are working - 20 forms or so on DreamHost.com

I changed my form to .php, and now I can send from my dev machine (Preview in browser), and it goes straight to the spam folder, but fails went I published and try to send e-mail on test server.

Several more days of trying to get the contact form e-mail to work with IONOS. I even installed a PHP 8.4 server on my windows machine to help troubleshoot. Here is what I got so far.

If I take the form and preview in browser on the mac, I can use Port 465 with SSL or Port 587 with TLS and the e-mail WILL BE sent and received fine.

If I publish to a local file, and then move it to the Windows 11 PHP server machine, it is the same result, it WORKS on either port.

If I publish to the subdomain I created for test, it WILL NOT send.

I thought there may be a problem using e-mail on the IONOS system subdomains, so I took my running Rapidweaver Classic project and put that on the test subdomain, and e-mail was successfully sent and received. Of course the Classic contact form only appears to have a single setting which is my email address, so I do not know what else it set.

I spoke with IONOS tech suport this morning and knew I was had from the start, when he told me my account only supported WordPress. I have not had or used Wordpress for the entire 15 years I’ve had this account. He claims there are no logs he can view to help.

Any help or suggestions are welcome

Perhaps you my need to change the ionos contract from Wordpress hosting to the normal hosting without Wordpress? These are different products. But idk if this affects sending mails.

I just know I had to use the email address from the domain as sender otherwise it would not work.

Got mine working after many many attempts, I redo the forms and followed Dan’s checklist:

Latest try:

I verified it is a Linux server
Verified PHP 8.4
Rename all pages to index.php
Changed all directory permissions from 705 to 755
Changed all file permissions from 604 to 644
Used contact form and email still failed.
Checked rw/elements/com.realmac.corepack/api/logs, log directory does not exist.
Created directory myself, still fails and no log.
Removed the log directory I created.
Checked the servers log, on the line below, in the logs dozens of times, does that 404 mean something is not found?

108.34.175.0 - - [01/Sep/2025:17:49:33 -0400] "POST /rw/elements/com.realmac.corepack/api/email HTTP/1.1" 404 1271 test-n1et.bobsimoneau.com https://test-n1et.bobsimoneau.com/contact/contact.php “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36” “-”

Now 2am, so I am done for now. Since the form works from Preview in browser and when moved to my PHP 8.4 server on my Windows PC, tomorrow I will publish to a local drive and then FTP the files to the test server to verify nothing is lost in the publish to the test server at IONOS.

Thanks to all those assisting on this.

1 Like

Looking at the naming scheme:
https://test-n1et.bobsimoneau.com/contact/contact.php

Should be:
https://test-n1et.bobsimoneau.com/contact/index.php

Can you try this?

@handshaper the page the Form is on does not require PHP — the server requires PHP. The “frontend” Form component does not.

@Godber did you try reCaptcha or the (fairly) new “Honey Pot” option? I would not recommend publishing a form without any spam protection, you will definitely receive spam if you do so.

The rw/elements/com.realmac.corepack/api/logs folder needs to be there as the PHP code that handles the form requests will add important logging information in there. Please ensure the logs folder exists :slight_smile:

@bobsimoneau Do you have a live URL I can take a look at? The one listed above is not working for me.

trying hCapture as it looked the easiest but will not work….goes through the picture bit then get message not sent…..not sure if there is code I have to enter but the Catcha box shows etc

tried reCaptcha as well…no success

to use honey pot do you just switch it on?

just select “Honey Pot” from the spam protection list, you don’t need to do anything else.

If you go with Honey Pot the form will automatically add some hidden fields that spam bots will likely fill out — if they do fill them out, the form will be rejected as spam.

When the “Honey Pot” gets activated, is it logged?