We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

"A valid sender email is required"

Development and Programming

rjanuska's avatar
rjanuska
5 posts
4 years ago
rjanuska's avatar rjanuska

For the life of me I cannot figure out what I need to fix in my form code to make this error go away.

Any thoughts?

Thank you!

  • Rayna
       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

That most likely mean your form doesn’t have an email address as a parameter, or the email address is malformed.

Can you post your basic form code?

       
rjanuska's avatar
rjanuska
5 posts
4 years ago
rjanuska's avatar rjanuska

Right now I have basic code and I got it to send now it’s only sending me the message portion but not the name.

{exp✉️contact_form name="Online Form" recipients="[email protected]" charset="utf-8" replyto="yes" allow_html="no"}

<div > <input type=”hidden” name=”subject” value=”Online Contact” /> </stong> Name: <input type=”text” id=”name” name=”name” /></p> <strong></stong> Email: <input type=”text” id=”from” name=”from” /></p> </div>

<div > <strong>* Message: <textarea id=”message” name=”message” height:100px;”></textarea> {if captcha} Please enter the word you see in the image below: {captcha} <input type=”text” name=”captcha” value=”” /></p> {/if} <input name=”submit” type=’submit’ value=’Submit Form’ /></p> </div>

{/exp✉️contact_form}

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

The name value is only included as the “from” name in the email you receive, not in the body of the email.

Here’s a tidied up form for reference.

{exp:email:contact_form name="OnlineForm" user_recipients="no" recipients="[email protected]" charset="utf-8" replyto="yes"}
<input type="hidden" name="subject" size="40" value="Online Contact">

  <label for="name">Your Name:</label>

  <input type="text" id="name" name="name" value="">

  <label for="from">Your Email:</label>

  <input type="text" id="from" name="from" value="" >

  <label for="message">Message:</label>

  <textarea id="message" name="message"></textarea>

  {if captcha}
    Please enter the word you see in the image below:
    {captcha}
 <input type="text" name="captcha" value="" maxlength="20"></p>
  {/if}

  <input name="submit" type='submit' value='Submit Form'>

{/exp:email:contact_form}
👍 1
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.