So I set up a contact form and the email plugin on a new Grav site in pretty much the same way I’ve done quite a few times before, the only difference being the server. This site is hosted with a provider which I haven’t worked with before, and apparently it’s not an Apache server according to Grav Tools > Reports (it says there under Apache Modules: “Apache not installed, skipping…”).
The form is pretty long so I’ll leave out some fields, here it is:
cache_enable: false
form:
name: kontakt
fields:
form_type:
label: Formularangaben
type: radio
outerclasses: 'closed form_type-outer'
classes: form_type
options:
kontakt: 'Allgemeine Anfrage'
trennung: 'Scheidung & Trennung'
erbschaft: 'Erbschaft & Schenkung'
name:
label: 'Ihr Name'
autocomplete: 'on'
type: text
validate:
required: true
email:
label: 'Ihre Mail-Adresse'
type: email
validate:
required: true
telefon:
label: 'Ihre Telefonnummer'
type: tel
message:
label: 'Ihre Nachricht'
type: textarea
validate:
required: true
buttons:
submit:
type: submit
value: Abschicken
reset:
type: reset
value: Zurücksetzen
process:
email:
subject: 'Post vom Kontaktformular'
body: '{% include ''forms/data.html.twig'' %}'
message: 'Vielen Dank für Ihre Nachricht! Wir werden uns baldmöglichst bei Ihnen melden.'
display: nachricht-gesendet
Like I said, I have used this form on other sites before, and I also checked the settings in the email plugin. Everything seems to be much the same as usual. When I fill out and submit this form on the frontend, I get the page that I set as display
(nachricht-gesendet), but NO message of any kind. And there’s nothing in the Grav log (under Tools), the email plugin is set to debug though.
I have tried putting different email addresses as the default to: address in the plugin settings, none of them gets an email. I also deliberately misspelled one to see what would happen, and I still don’t get an error of any kind anywhere. How do I debug this? What could be going wrong, under which part of the hood?
Super grateful, as always, for any and all ideas!