[SOLVED]Send email to the current user logged in

picsoung 12 Feb, 2009
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😀
GreyHead 12 Feb, 2009
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.
<?php
$user =& JFactory::getUser();
?>
. . .
<input type='hidden' name='email' value='<?php echo $user->email; ?>' />


Bob
picsoung 13 Feb, 2009
Working😉

so wonderdul what is possible with that plugin😉
now i used it everytime i need to do something😛

great job😉
hope my boss would by a license, i'm just the 'developer' of the company site...:(
This topic is locked and no more replies can be posted.