Send To Users Email Address

Shows some Tutorials

Send To Users Email Address

Postby dave601 on Tue Jun 03, 2008 4:50 pm

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!
dave601
Fresh Boarder
 
Posts: 3
Joined: Tue Jun 03, 2008 4:46 pm

Re:Send To Users Email Address

Postby GreyHead on Wed Jun 04, 2008 4:42 am

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3253
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Send To Users Email Address

Postby dave601 on Wed Jun 04, 2008 3:40 pm

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!
dave601
Fresh Boarder
 
Posts: 3
Joined: Tue Jun 03, 2008 4:46 pm

Re:Send To Users Email Address

Postby GreyHead on Wed Jun 04, 2008 4:05 pm

Hi dave601,

Yes, Max over-validates the admin form there. You can put a dummy email address in there like 'user@example.com' 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:
Code: Select all
<?php
$rows[0]->extraemail = "";
?>
Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3253
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to ChronoForms How To

Who is online

Users browsing this forum: MSN [Bot], Olivier and 3 guests