Eine Benachrichtigungs-E-Mail senden
Updated July 14, 2023
Formspree.json-Konfiguration
Sende jemandem eine einfache Klartext-Benachrichtigung per E-Mail, wenn das Formular abgesendet wird.
| Key | Typ | Beschreibung |
|---|---|---|
type | String | Muss email sein |
to | String | Die E-Mail-Adresse des Empfängers (erforderlich) |
Beispiel
{
"forms": {
"contact": {
"name": "Contact Form",
"actions": [
{
"type": "email",
"to": "john@example.com"
}
]
}
}
}
Validierung
Wenn die email-Aktion hinzugefügt wird, werden die folgenden Validierungsregeln implizit hinzugefügt.
| Feld | Validierungsregel |
|---|---|
email | Erforderlich |
email | Typ ist email |