Changing text & url to the email sent out to new users - Joomla! Forum - community, help and support


i have high profile corporate business website doing.

in website super-admin / admins of site add new registered users through backend of site. set settings (when set up) of "receive system e-mails" yes , email sent user details of account.

i wanting change url , text of email gets sent out. there way can through languages file? have tried changing send_msg found in _user.ini language file no difference.

some assistance great.

hello,

afaik "receive system e-mails" when set in account send system message users, when new user register. if checked users better uncheck otherwise each time new user register user "receive system e-mails" receive notification.
when new user created through back-office email automatically sent (there no setting available alter behavior)

to able alter email notification sent should :

in language file *.com_users.ini on line 28, 29 change corresponding text of

new_user_message email body
new_user_message_subject subject

you may notice "%s" characters, used sprintf() function text replacement injecting dynamic content (the username, url, etc...) , should keeped.

for url have alter controller in administrator/component/com_users/controller.php on line 176

code: select all

if ($isnew)
      {
         $adminemail = $me->get('email');
         $adminname   = $me->get('name');

         $subject = jtext::_('new_user_message_subject');
         $message = sprintf ( jtext::_('new_user_message'), $user->get('name'), $sitename, juri::root(), $user->get('username'), $user->password_clear );

         if ($mailfrom != '' && $fromname != '')
         {
            $adminname    = $fromname;
            $adminemail = $mailfrom;
         }
         jutility::sendmail( $adminemail, $adminname, $user->get('email'), $subject, $message );
      }


on line 182 juri::root() should replaced needed url quoted

hope helped out.

[edit]
just run in component seems trick, http://extensions.joomla.org/extensions ... ement/7154
i didn't test though , require ftp layer active





Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support