Forums

Thank you email

d_proudfoot 11 Sep, 2008
I have read a few of the forum posts regarding second emails but can't seem to get it to work. I want to email the results of our form to our voluneer coordinator which is working, but then send a thank you email to the person who filed out the form. I have put the following code in the On Submit code - after sending email: but no message arrives, and no error is displayed

<?php
$recipient = $Email;
$html_message = '<html>
<body>
Thank you very much for contacting us to volunteer.<br>
We will be contacting you shortly to discuss a voluteer schedule.
</body>
</html>';
JUtility::sendMail($from, $fromname, $recipient, $subject, $html_message, true );
?>

I am using 2.5 J1.5 RC2 and joomla 1.5.6

Thanks
Max_admin 11 Sep, 2008
Hi proudfoot,

we need to give the variables some values :

$recipient = JRequest:;getVar('Email'); // assuming your email field name is Email
$from = [email]'admin@admin.com[/email]';
$fromname = 'admin';
$subject = 'thanks';
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.