I am getting an error when I try to submit contact forms using the Email Module on a site I am developing. Upon clicking “submit” I get “A valid sender email is required.
I am trying to use this as a general contact form for all of the sites visitors, most of whom will not be members. Here is my code:
{exp:email:contact_form recipients="[email protected]" redirect="6" user_recipients="false"}
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" size="40" maxlength="60" value="" /></p>
<label for="email">Your Email:</label>
<input type="text" id="email" name="email" size="40" maxlength="60" value="" /></p>
<label for="subject">Subject:</label>
<input type="text" id="subject" name="subject" size="40" maxlength="60" value="" /></p>
<label for="message">Message:</label>
<textarea id="message" name="message" rows="15" cols="40"></textarea>
<input name="submit" type="submit" value="Submit Form" /></p>
{/exp:email:contact_form}
What am I doing wrong here? I found a reference to a similar problem in a post that was several years old, but I didn’t want to start chopping away at my .php files based on recommendations from 4 years ago.
For reference I am using Expression Engine 1.6.5, Build: 20081028.