This plugin is designed to allow you to quickly and easily create forms that will be used to email reciepents. This is a very simple plugin and if you need more power checkout the official Raven plugin.
Here is a full example to get you going. Please see the parameters section for more field options:
{{ email_form subject="Contact Form" to="handsome@example.com" required="name" }}
{{ if error}}
<h1>Error</h1>
<ul>
{{ errors }}
<li>{{error}}</li>
{{ /errors }}
</ul>
{{ endif }}
{{ if success }}
<p>Your message has been sent!</p>
{{ else }}
<div>
<label for="name">Name:</label>
<input type="text" name="name" id="name" value="Bill">
</div>
<div>
<label for="from">Email:</label>
<input type="text" name="from" id="from" value="test@test.com">
</div>
<div><input type="submit"></div>
{{ endif }}
{{ /email_form }}
The {{ email_form }}
tag accepts the following paramaters:
Reply-to
is always the supplied from from
field.If you see any issues or have ideas for improvements pull requests are gladly accepted. ;-)