Hey😀
juste a little easy question i think😛
users are logged in, they fill a form. I would like to send them a confirmation email after the submission...
But how can i insert user email dynamicly in the "Dynamic to" field in email template.
In my form there is no email field..
Thanks😀
juste a little easy question i think😛
users are logged in, they fill a form. I would like to send them a confirmation email after the submission...
But how can i insert user email dynamicly in the "Dynamic to" field in email template.
In my form there is no email field..
Thanks😀
Hi picsoung,
So where's the email address coming from? Are these logged on registered users? If so then you can use a the $user Object to put their email address into a hidden field on the form.
Bob
So where's the email address coming from? Are these logged on registered users? If so then you can use a the $user Object to put their email address into a hidden field on the form.
<?php
$user =& JFactory::getUser();
?>
. . .
<input type='hidden' name='email' value='<?php echo $user->email; ?>' />
Bob
This topic is locked and no more replies can be posted.