Page 1 of 1

From email adress - current user

Posted: 20 Apr 2011, 15:39
by Ollex
Hi,

is it possible to fill the from field on the WRITE EMAIL-Screen, so it is automatically filled with the current backend user's email adress?

Thanks for any help in this respect! :twisted:

Re: From email adress - current user

Posted: 20 Apr 2011, 22:31
by Ollex
..Ok - as for now, I just added some code to the view file for the write screen replacing the ['form'] value with the actual user's email adress, which works fine. (The usual Joomla thing ...$some = &JFactory::getUser(); and then r['form'] = $some->email; ) around line 100.
/views/phocaemailwrite/view.html.php
I'm not a programmer, so maybe not the best place, but it works now - before that I always had the superadmin email in the field.

Re: From email adress - current user

Posted: 21 Apr 2011, 22:10
by Jan
Ok