Email not sending through forms

elementsapp://downloadDocument/28eU8o7kBqkC

Hello, I’m experiencing an issue with the contact form on my website’s Contact page. When I try to send a message through it, I receive an error. Could you please take a look and help me resolve this?

I see a couple of issues that will stop your form from working …

  1. All the components that make up the contact form need to be “inside” the Form component. At the moment only the Error and Success components are correctly positioned.

  2. The Form component has the Type set to “Webhook”. Was this the intention? If so you will need to specify a Webhook URL. If you want the form to send an email, you need to set Type to “Email” and provide the details requested.

Hope this helps.

Thanks for taking a look at this! Just to clarify, all of the components (except the back container) are already inside the Form component. Also, the Type is currently set to ‘Email,’ not ‘Webhook.’ Could you take another look and let me know what else might be causing the error?

And you are running PHP 8.1 or greater on the server?

Yes, I am running 8.2

Can you try running through the form compatibility checklist?

Let us know how you get on with that.

Update: If you’re still having issues, the Form Logs will help us narrow down what the problem is.

I’ve followed the directions for checking the form logs, but the only logs I can find are under com.realmac.apipack, not com.realmac.corepack as the instructions mention. The second screenshot I attached shows the only log that appears. I’ve tried everything else I can think of to get this form working, but I’m still running into issues. Could you help me figure out what’s going wrong?

This is the final issue we need to resolve before announcing our updated website. Could you please assist?

Hi @Lszymczak

Could you attach an updated link to your project file? I tried the original one you posted, but it looks like that one is outdated based on your subsequent screenshot.

Make sure to clear out your email password in the form settings before posting the link to your project file.

Here is the updated link.

elementsapp://downloadDocument/NQlkhT5ciZMp

Hi @Lszymczak

The Form API is working ok on your server so that looks good:

I see an error when trying to submit the form though:

The error’s similar to another one we saw a few days ago. Looks like you are using Network Solutions as your mail provider, is that right? I checked their help docs and they mention trying to use port 587 and TLS for outgoing mail. Could you adjust the Port and Encryption fields in your form settings like below?

Then re-publish all files and try testing the form again to see if it works. Make sure you are using the correct email address and password too.

Let us know how you get on.

1 Like

With those changes made it still didn’t work unfortunately.

Is there anything else I should be looking for?

Hi @Lszymczak

Are you seeing any logs being generated now? I see you weren’t seeing anything before, but wanted to check if perhaps you could see some log files there now.

Information on where to check for those log files below:

We are now seeing logs in the correct place. What do we do with them?

[2025-10-09T13:05:55.219214-04:00] form_config.INFO: Processing email form submission {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“fields”:[“Name”,“email”,“Phone”,“Project”,“Description”,“_metadata”],“attachments_count”:0,“metadata”:{“ip”:“127.0.0.1”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Vivaldi/5.3.2679.68”,“timestamp”:“2025-10-09T13:05:55-04:00”}}
[2025-10-09T13:05:55.233999-04:00] form_config.DEBUG: Preparing to send email {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“attachments_count”:0}
[2025-10-09T13:05:55.516346-04:00] form_config.DEBUG: EmailService: PHPMailer ready to send {“recipients”:[[“connect@classiccc.com”,“”]],“subject”:“New Form Submission",“from”:“connect@classiccc.com”,“attachments_count”:0}
[2025-10-09T13:06:25.616833-04:00] form_config.ERROR: EmailService: Exception in sendFormSubmission {“error”:“SMTP Error: Could not connect to SMTP host. Failed to connect to server”,“exception”:“[object] (PHPMailer\PHPMailer\Exception(code: 0): SMTP Error: Could not connect to SMTP host. Failed to connect to server at /data/20/2/40/69/2529232/user/2771281/htdocs/classiccc/rw/elements/com.realmac.corepack/api/vendor/phpmailer/phpmailer/src/PHPMailer.php:2348)”,“formData”:{“Name”:“Johnathan Odom”,“email”:“ljohnathaneds@gmail.com”,“Phone”:“1576172101”,“Project”:[“Closet”,“Pantry”,“Garage”,“Mudroom”,“Home Office”,“Laundry Room”,“Kitchen”,“Murphy Bed”,“Basment Storage”,“Library”,“Other”],“Description”:“Hi,\r\nAre you currently looking for a digital marketing company that actually gets you leads?\r\n\r\nI’m offering free Google Search Intent leads for your niche (up to 500)—I got this list and wanted to see if you wanted to be a free tester, no cost, no catch. Maybe you can give me a nice review if you like it.\r\n\r\nWould you be open to a quick 5-minute Google Meet call to discuss?\r\n\r\nRegards,\r\nJonathan Salomon”},“options”:{“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“template”:“default”,“from_email”:“connect@classiccc.com”,“from_name”:“classic, connect”},“config”:{“from_email”:“connect@classiccc.com”,“from_name”:“classic, connect”,“reply_to”:null,“smtp_host”:“netsol-smtp-oxcs.hostingplatform.com”,“smtp_port”:“587”,“smtp_username”:"connect@classiccc.com”,“smtp_password”:““,“smtp_encryption”:“ssl”,“smtp_auth”:true,“smtp_debug”:false,“smtp_timeout”:30,“charset”:“UTF-8”,“word_wrap”:76,“priority”:3,“confirm_reading_to”:null,“allow_empty_to”:false,“validate_addresses”:true,“enabled”:true,“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“template”:“default”,“smtp_verify_peer”:true,“smtp_verify_peer_name”:true,“smtp_allow_self_signed”:true}} []
[2025-10-09T13:06:25.617212-04:00] form_config.ERROR: EmailService returned false {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“to”:“connect@classiccc.com”} []
[2025-10-09T13:06:25.617303-04:00] form_config.INFO: Email sending attempt {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“success”:false,“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“form_data_fields”:[“Name”,“email”,“Phone”,“Project”,“Description”,“_metadata”]} []
[2025-10-09T13:06:25.617397-04:00] form_config.ERROR: Email form submission failed {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“error”:“Failed to send email”} []
[2025-10-09T16:37:31.936710-04:00] form_config.INFO: Processing email form submission {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“fields”:[“Name”,“email”,“Phone”,“Project[]”,“Description”,“_metadata”],“attachments_count”:0,“metadata”:{“ip”:“67.184.14.61”,“user_agent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15”,“timestamp”:“2025-10-09T16:37:31-04:00”}} []
[2025-10-09T16:37:31.938705-04:00] form_config.DEBUG: Preparing to send email {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“attachments_count”:0} []
[2025-10-09T16:37:31.969835-04:00] form_config.DEBUG: EmailService: PHPMailer ready to send {“recipients”:[[“connect@classiccc.com”,“”]],“subject”:“New Form Submission”,“from”:“connect@classiccc.com”,“attachments_count”:0} []
[2025-10-09T16:38:02.025892-04:00] form_config.ERROR: EmailService: Exception in sendFormSubmission {“error”:“SMTP Error: Could not connect to SMTP host. Failed to connect to server”,“exception”:“[object] (PHPMailer\PHPMailer\Exception(code: 0): SMTP Error: Could not connect to SMTP host. Failed to connect to server at /data/20/2/40/69/2529232/user/2771281/htdocs/classiccc/rw/elements/com.realmac.corepack/api/vendor/phpmailer/phpmailer/src/PHPMailer.php:2348)”,“formData”:{“Name”:“Mark Szymczak”,“email”:“orders@classicclosetsinc.com”,“Phone”:“6303557850”,“Project[]”:“Kitchen”,“Description”:“run”},“options”:{“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“template”:“default”,“from_email”:“connect@classiccc.com”,“from_name”:“classic, connect”},“config”:{“from_email”:“connect@classiccc.com”,“from_name”:“classic, connect”,“reply_to”:null,“smtp_host”:“netsol-smtp-oxcs.hostingplatform.com”,“smtp_port”:“587”,“smtp_username”:“connect@classiccc.com”,“smtp_password”:”
”,“smtp_encryption”:“ssl”,“smtp_auth”:true,“smtp_debug”:false,“smtp_timeout”:30,“charset”:“UTF-8”,“word_wrap”:76,“priority”:3,“confirm_reading_to”:null,“allow_empty_to”:false,“validate_addresses”:true,“enabled”:true,“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“template”:“default”,“smtp_verify_peer”:true,“smtp_verify_peer_name”:true,“smtp_allow_self_signed”:true}}
[2025-10-09T16:38:02.026075-04:00] form_config.ERROR: EmailService returned false {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“to”:“connect@classiccc.com”}
[2025-10-09T16:38:02.026145-04:00] form_config.INFO: Email sending attempt {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“success”:false,“to”:“connect@classiccc.com”,“subject”:“New Form Submission”,“form_data_fields”:[“Name”,“email”,“Phone”,“Project”,“Description”,“_metadata”]}
[2025-10-09T16:38:02.026203-04:00] form_config.ERROR: Email form submission failed {“config_path”:“../../../../contact/./backend/rwBE7098FE_F387_44A1_A8C8_118B654EF786/config.php”,“error”:“Failed to send email”}

This is what the logs are showing

Hi @Lszymczak

This is the important error: “SMTP Error: Could not connect to SMTP host.”

This suggests that your Form settings are still incorrect and the email server is rejecting the attempted connection from your form.

I can see from the logs that you are still using “SSL” rather than “TLS” (as suggested by @differentdan above). Please change the Encryption setting to TLS, republish your site, and try to submit the form again.

Hopefully once you’ve done this, your form will begin working as expected. Let us know how you get on :slight_smile:

I have switched it to TLS and it still doesn’t work. We have tried every combination of settings for the past month and nothing has worked. Our current website was built with Rapid Weaver and Foundry, we are using the same email settings and that form works. Please help, this is the last piece of the website that needs to be finished before we publish. We have pushed the publish date multiple times due to this issue. Thank you

Hi @Lszymczak,

If you want to try and schedule a Zoom call we probably better troubleshoot, if not resolved at least get more information on what’s going on. If you want to schedule a Zoom call feel free to send us an email at support@realmacsoftware.com and we can get something scheduled.