Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Cannot get contact form to email me

Started by amdival 9 years ago · 2 replies · 719 views
9 years ago

I have a contact form. When I hit submit, I get redirected to the Thank You page, but no email ever makes it to me.

I'm attempting to use Sparkpost. I have a Verified status with Ready For Sending, DKIM Signing.

I am sure that my to: field in config/plugins/email.yaml is correct.

I'm not really sure where to look for a solution.

I don't have a good grasp on how emailing works. I have my domain registered with Godaddy, my DNS is handled by our IT department. (I had to contact our IT department to add the TXT DNS Record). I don't use any email this is associated with our domain, so I don't know if it's even set up. I'm guessing it must be if Sparkpost is verifying it.

9 years ago

I got it working.
I've spotted a section in the docs that might need to be updated:

https://learn.getgrav.org/forms/forms

The section:
Create a Simple Single Form

YAML
Process:
   - email:
      to:
         - "{{ config.plugins.email.from }}"

should be:

YAML
Process:
   - email:
      to:
         - "{{ config.plugins.email.to }}"
9 years ago

There is also another section in the docs that might need attention or I might be misunderstanding it.

https://learn.getgrav.org/forms/forms/example-form

TXT
Now inside the page folder create a subfolder named thankyou/, create a new file named formdata.md. Users submitting the form will be redirected on that page.

The formdata page template is provided in Antimatter and other themes. If your theme does not provide it, you'll see an error. You can just copy it from Antimatter and things should work fine.

I created the thankyou/ subfolder and created a blank document titled formdata.md within that folder. My theme does not have a formdata page template, nor did I see one with Antimatter. The Thank You page shows up regardless without error.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago