Hi,
I’ve been experimenting with a form for people to invite others to the site, so I basically just used the example Email Contact Form with ‘recipients’ and it seems to work fine, but I would like of course like my visits to choose who to send to (friends email address). So I added a ‘to’ according to the instruction and here is my code:
{exp:email:contact_form user_recipients="false" charset="utf-8"}
<label for="name">Your Name: </label>
<input type="text" id="name" name="name" size="40" maxlength="35" value="" /></p>
<label for="from">Your Email:</label>
<input type="text" id="from" name="from" size="40" maxlength="35" value="" /></p>
<label for="to">Friends email: </label>
<input type="text" name="to" size="40" /></p>
<label for="subject">Subject:</label>
<input type="text" id="subject" name="subject" size="40" value="Invitation" /></p>
<label for="message">Message:</label>
<textarea id="message" name="message" rows="18" cols="40">something written here</textarea></p>
{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' /></p>
{/exp:email:contact_form}But when I try to send an invite from this form to one of my email accounts, I never receive anything. Can you see any reason why this is not working?
I’m on EE 1.7 (Build: 20101018)
Thanks,