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

Email form gives "Server error", no validation?

Started by Muut Archive 9 years ago · 3 replies · 409 views
9 years ago

Hi everybody,
When I enter an Emailadress in the Emailform without the @-Sign and press submit i'm getting a "server error Sorry, something went terribly wrong! 0 - Address in mailbox given [emailadress] does not comply with RFC 2822, 3.6.2"
Can somebody please tell me how to prevent this.
In the system.yaml the
twig:
debug: false
...
errors:
display: false
log: true

and in modular.md for the form (onepage-website)

validate:
rule: email
required: true

why there is not just a validation note near the field of the form?
Thank you very much

9 years ago

Check your form.md for the following markup:

YAML
- name: email
          label: Email
          placeholder: Enter your email address
          type: text
          validate:
            rule: email
            required: true

type:texthas to be type:email

9 years ago

Thanks very much sebbb!!
that solved the problem.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago