From email adress - current user

Phoca Email (Newsletter) - sending emails and managing newsletters in Joomla! CMS
Ollex
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Apr 2011, 15:36

From email adress - current user

Post 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:
Ollex
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Apr 2011, 15:36

Re: From email adress - current user

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: From email adress - current user

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply