mplodowski / formbuilder-plugin-public

https://octobercms.com/plugin/renatio-formbuilder
https://octobercms.com/plugin/renatio-formbuilder
2 stars 0 forks source link

Contact Form Sent Successfully but failed to receive the email #22

Closed jubbot closed 1 year ago

jubbot commented 2 years ago

Describe the bug Test send form and did not receive email but in record log I can see all fields entered.

To Reproduce Steps to reproduce the behaviour:

  1. Go to Editor and select contact page and click Components > Form Builder > Render Form Component
  2. Click Render Form Component and click the name of the Form and save
  3. Go to Contact page and fill out the form and hit submit
  4. Email Client did not receive contact form but Form Log say it has been submitted

Expected behavior The behaviour seem to me that when I complete the custom contact form and clicked submit button, successfully send form notice and nothing came through my email but appear in Preview Log.

Mail Configuration Sender Name: Dummy Sender email: noreply@dummy.com.au Mail Method: PHP mail

Mail Template

Layout: Default Layout

Form Builder Details Tab Sender Email: noreply@dummy.com.au Sender Name: Dummy Dummy Mail Template: Default Form Template

Recipients Tab Email: realname@dummy.com

Screenshots If applicable, add screenshots to help explain your problem.

October version 2.2.24

Plugin version 2.2.0

Additional context Written guide to assist customers how to setup basic contact form with test working configuration would be great

mplodowski commented 2 years ago

Go to Settings -> Mail -> Mail Templates and click any template. There will be a send test message button. If you don't receive any email when doing this, than your October Mail configuration is wrong. Sometimes PHP Mail method is blocked in some providers. I recommend you to setup SMTP method.

jubbot commented 2 years ago

Yes I have visited Settings -> Mail -> Mail Templates and click any template. Tested the send test message button and I have received the email. Could be something in the code that cause the issue?

mplodowski commented 2 years ago

This recipient email "realname@dummy.com" is your valid email address? Please try to use personal email to check if it works.

jubbot commented 2 years ago

The above email is not the real email, I don't want to publicly display my email address here.

I switched from PHP Mail to SMTP and filled the Mail Configuration based on GoDaddy's advice Not sure if it is related to the plugin but when I tried to test the send test I get this error

Connection could not be established with host smtp.office365.com :stream_socket_client(): unable to connect to tcp://smtp.office365.com:587 (Network is unreachable)

It saying that the network is unreachable? Have you encounter this error before if so what step should I take to diagnose the error?

mplodowski commented 2 years ago

Sorry, but this is not plugin related. It is mail configuration settings, that is different in each service/server provider. I don't know what is wrong here, but there are some topics in Google that may help you.

jubbot commented 2 years ago

Okay, I will find topics in Google search

jubbot commented 2 years ago

I decided to use MailGun and they work fine. Another topic. I've install uploader plugin and question on how can I limit the upload max file size and restrict specific file type? When the user submit the contact form does the uploaded files goes to the email or it uploaded to backend and I go and download them?

mplodowski commented 1 year ago

Version 3.1.0 have new options for uploaded files. Uploaded files are send as attachments and can be previewed in backend form log.