You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure to update the `action` url to be your Heroku app url, and the key should be `ADMIN` or a custom key that matches your config variables.
42
44
43
45
## Advanced Usage
44
46
47
+
### Custom Keys
48
+
The key associated with your email address does not have to be ADMIN. You're also not limited to only one key/email pair per server. Setting a new key/pair anywhere in the config variables, including in the `emails.json` file, will allow you to use that key in the action url of your contact form.
49
+
50
+
Let's say you want to have a newsletter signup form but you don't want the emails going to the same place as your contact form. Simply create your `email.json` file to have a key to send to your email for signing up.
You can add custom fields to be added to the end of your email message. Usefull for address, phone number, etc. All you have to do is set the input name to `_fields.` followed by a camel case sentence.
46
70
47
-
<input type="tel" name="_fields.cellNumber">
71
+
```javascript
72
+
<input type="tel" name="_fields.cellNumber">
73
+
```
48
74
49
75
The above code will result in the following appended to the end of your email message:
0 commit comments