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
@@ -42,6 +44,62 @@ Mailhound is a simple server side script for receiving form posts and emailing t
42
44
43
45
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.
44
46
47
+
### Main Message
48
+
49
+
The main text message of your email. This field is usually a `<textarea>` with a `name="message"` set. This will default to '**No message was provided**' if the field is ommited.
50
+
51
+
```html
52
+
<textareaname="message"></textarea>
53
+
```
54
+
55
+
### Email Subject
56
+
57
+
This field allows you to set the subject of the email. Defaults to '**Email from mailhound**'. It is not always beneficial to allow the user to specify the subjet, in this case you can simply hide the field.
58
+
59
+
```html
60
+
<!-- User defined subject -->
61
+
<inputtype="text"name="_subject" />
62
+
63
+
<!-- Static subject -->
64
+
<inputtype="hidden"name="_subject"value="New message from my website!" />
65
+
```
66
+
67
+
### Reply To
68
+
69
+
The reply to field is meant for the user's email. It allows for simply replying to the email sent to you instead of having to copy the user's address to a new email.
70
+
71
+
```html
72
+
<!-- Basic reply to field -->
73
+
<inputtype="email"name="_replyto" />
74
+
75
+
<!-- Option for better auto completion -->
76
+
<inputtype="email"name="email" />
77
+
```
78
+
79
+
### Name
80
+
81
+
This field is simply for the emailer's name.
82
+
83
+
```html
84
+
<inputtype="text"name="name" />
85
+
```
86
+
87
+
### CC
88
+
89
+
This field allows you for the user to specify an address to get a cc'd copy of the form.
90
+
91
+
```html
92
+
<inputtype="text"name="_cc" />
93
+
```
94
+
95
+
### Redirect
96
+
97
+
By default, the script redirects to the page that sent the form. If you would like to redirect the user to a specific page after the form has been sent, simply specify the url in this hidden field.
@@ -78,6 +136,14 @@ The above code will result in the following appended to the end of your email me
78
136
Cell number: ### ### ####
79
137
```
80
138
139
+
### Spam Filtering
140
+
One of the downsides of having a contact form is that you will start receving lot's of spam (bots that automatically fill out forms). To combat this, mailhound supports a visually hidden field that when filled in, will silently fail. This will catch a lot of bots, keeping your inbox much cleaner.
141
+
142
+
Simply add the following to your form to prevent spam:
Please feel free to create an issue with any bugs you find or any improvements you would like to share. Pull requests for new features are also very welcome!
0 commit comments