Welcome, Guest

email thank you page to user
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: email thank you page to user

email thank you page to user 2 years, 2 months ago #9979

I want to email the thank you page when the user clicks submit, to the email address user filled in in the form. Don't know how.
Hope someone can help me out here, thanks!
  • remmie
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0

Re: email thank you page to user 2 years, 2 months ago #9996

much easier then I expected.... create a file called formname_mailback.txt.php and put it in /administrator/components/com_facileforms/mailtpl

put your desired text within that file and there you go worked out the gates for me! just make sure that in place of formname you use the name NOT title.... I have different templates for each form if you want to include the data that is originally sent take a look at the other file within that folder just include the code within your template... keep the other files there of course....
  • spencelk
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0

Re: email thank you page to user 2 years, 2 months ago #10340

I am struggling with this. I understand the part about creating the file and where it goes...

What I don't at all get it what is an example of how the contents of that file should be. Can someone provide a quick example of what the format needs to be for the "formname_mailback.txt.php" file?
  • dmueller07
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re: email thank you page to user 2 years, 2 months ago #10342

Hi,

you can use the contents of the already existing mailtpl.txt.php and use it in your custom template. There you can remove what you don't need or add additional stuff like thank you messages.
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: email thank you page to user 2 years, 2 months ago #10344

Ok, what I want to happen is when the user hits the "submit" button, all the results of the pages go both to me (which I can get that to work if I don't do the summarize option) and to the e-mail value the user entered on the form. There has to be a simple way to do this that I'm missing.

I took the file described above, just changed the formname to the actual name. Clearly I'm doing this wrong. Below is the contents of the file:
<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
?>

<?php if ($RECORD_ID != ''): ?>
<?php echo $PROCESS_RECORDSAVEDID?> <?php echo $RECORD_ID ?><?php echo $NL ?>
<?php endif; ?>

<?php echo $PROCESS_FORMID?>: <?php echo $FORM ?><?php echo $NL ?>
<?php echo $PROCESS_FORMTITLE ?>: <?php echo $TITLE ?><?php echo $NL ?>
<?php echo $PROCESS_schedule_reporter2 ?>: <?php echo $NAME ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTEDAT ?>: <?php echo $SUBMITTED ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERIP ?>: <?php echo $IP ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERID ?>: <?php echo $SUBMITTERID ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERUSERNAME ?>: <?php echo $SUBMITTERUSERNAME ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERFULLNAME ?>: <?php echo $SUBMITTERFULLNAME ?><?php echo $NL ?>
<?php echo $PROCESS_PROVIDER ?>: <?php echo $PROVIDER ?><?php echo $NL ?>
<?php echo $PROCESS_BROWSER ?>: <?php echo $BROWSER ?><?php echo $NL ?>
<?php echo $PROCESS_OPSYS ?>: <?php echo $OPSYS ?><?php echo $NL ?>

<?php foreach ($MAILDATA as $DATA): ?>
<?php echo $DATA[_FF_DATA_TITLE]?>: <?php echo $DATA[_FF_DATA_VALUE]?><?php echo $NL ?>
<?php endforeach; ?>
  • dmueller07
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re: email thank you page to user 2 years, 2 months ago #10345

did you define the email field in the form as "Mailback" in the element's properties?
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
  • Page:
  • 1
  • 2
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.35 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany