Hi. I have been searching around for this for a while, but have not found a solid answer so I apologize if this question has been asked before.
I am trying to create an "Invite a Friend" form for my website. So I want some logged in user to be able to fill out a form and send it to the user they are trying to invite. What I am stuck on is getting the form I have created to send the email to the entered address. How do I accomplish this? Thanks!
I am trying to create an "Invite a Friend" form for my website. So I want some logged in user to be able to fill out a form and send it to the user they are trying to invite. What I am stuck on is getting the form I have created to send the email to the entered address. How do I accomplish this? Thanks!
Hi dave601,
Put the 'name' of the email address field in the box on the Special Fields tab (NB Only use field names on this tab).
Bob
Put the 'name' of the email address field in the box on the Special Fields tab (NB Only use field names on this tab).
Bob
Thanks GreyHead. That worked.
I have one other question. If I want the form to send only to the entered email address, what should I put in the email address field on the General Tab? I have found that I have to put a valid email address in there or the form won't send. However, I don't want this form sent to anyone other than the email address entered. Thanks!
I have one other question. If I want the form to send only to the entered email address, what should I put in the email address field on the General Tab? I have found that I have to put a valid email address in there or the form won't send. However, I don't want this form sent to anyone other than the email address entered. Thanks!
Hi dave601,
Yes, Max over-validates the admin form there. You can put a dummy email address in there like [email]'user@example.com[/email]' which isn't ideal but should work. Or you can add the dummy email address, amd a code snippet in the 'OnSubmit before' box to remove it again:
Yes, Max over-validates the admin form there. You can put a dummy email address in there like [email]'user@example.com[/email]' which isn't ideal but should work. Or you can add the dummy email address, amd a code snippet in the 'OnSubmit before' box to remove it again:
<?php
$rows[0]->extraemail = "";
?>
Bob
This topic is locked and no more replies can be posted.