Registration confirmation email and joomla plugin

UHU 23 Sep, 2008
Hello,

I finally got to understand what the %s in the fr-FR.com_chronocontact.ini you told me to create.
It's almost functioning well.
However the password and the site name don't pass through.
Looking at the Joomla plugin code it seems there may be a mistake.

function _sendMail(&$user, $password, $emailuser, $emailadmins)
	{
		global $mainframe;

		$db		=& JFactory::getDBO();

		$name 		= $user->get('name');
		$email 		= $user->get('email');
		$username 	= $user->get('username');

		$usersConfig 	= &JComponentHelper::getParams( 'com_users' );
		$sitename 		= $mainframe->getCfg( 'sitename' );
		$useractivation = $usersConfig->get( 'useractivation' );
		$mailfrom 		= $mainframe->getCfg( 'mailfrom' );
		$fromname 		= $mainframe->getCfg( 'fromname' );
		$siteURL		= JURI::base();

		


as you can see there is no line for the password? Is it taken from somewhere else.
Then you've got

$subject 	= sprintf ( JText::_( 'Your account details' ), $name, $sitename);
		$subject 	= html_entity_decode($subject, ENT_QUOTES);

		if ( $useractivation == 1 ){
			$message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password);
		} else {
			$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL,$username, $password);
		}


I then wrote my own text in fr-FR.com_chronocontact.ini
SEND_MSG="my own text"

Using the fr-FR.com_user.ini alone doesn't work. You still have to create one file with chronocontact in it even with the stable version

Furthermore in $name, $sitename, $siteURL,$username, $password
$sitename and $password are not integrated in the email.

Please let me know how to include them.

Thank you,

L.....
Max_admin 23 Sep, 2008
Hi Laure,

Both the $sitename and the $password are there in the first block of code you posted, and I tested the emails before the stable version without the com_chronocontact language file and it was fine, maybe I didn't check the password and sitename though but I will test that, sorry for the delay but I'm having a very busy 2 days here with life issues!

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
UHU 23 Sep, 2008
Hello Max,

I hope it's not too bad (your personal life matter).
Call me stupid but I felt there was a line missing for the password so I tried out this

		$name 		= $user->get('name');
		$email 		= $user->get('email');
		$username 	= $user->get('username');
		$password	= $user->get('password');
		$usersConfig 	= &JComponentHelper::getParams( 'com_users' );
		$sitename 		= $mainframe->getCfg( 'sitename' );
		$useractivation = $usersConfig->get( 'useractivation' );
		$mailfrom 		= $mainframe->getCfg( 'mailfrom' );
		$fromname 		= $mainframe->getCfg( 'fromname' );
		$siteURL		= JURI::base();


I got a string of letters and numbers instead of the password in the confirmation e-mail
which was not what I wanted but I got something. I used to get nothing. I take that
as an improvement.

I added this line
$password	= $user->get('password');


Maybe this will help you.

Thanks,

Laure
Max_admin 23 Sep, 2008
Hi Laure,

Thank you!๐Ÿ™‚
at this line :

sendMail(&$user, $password, $emailuser, $emailadmins)


as you can see the $password is already feeded to the function, no need to redefine it, what you get with your new line is the encoded password!

give me a chance and I will go there and will check the whole thing, those issues here are not hard but very time and efforts consuming, that's all!๐Ÿ™‚

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
UHU 29 Sep, 2008
actually it is this code I'm looking at

$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL,$username, $password);


but sitename and password are not forwarded in the email.

I don't see where the password is forwarded
	function _sendMail(&$user, $password, $emailuser, $emailadmins)
	{
		global $mainframe;

		$db		=& JFactory::getDBO();

		$name 		= $user->get('name');
		$email 		= $user->get('email');
		$username 	= $user->get('username');

		$usersConfig 	= &JComponentHelper::getParams( 'com_users' );
		$sitename 		= $mainframe->getCfg( 'sitename' );
		$useractivation = $usersConfig->get( 'useractivation' );
		$mailfrom 		= $mainframe->getCfg( 'mailfrom' );
		$fromname 		= $mainframe->getCfg( 'fromname' );
		$siteURL		= JURI::base();

		$subject 	= sprintf ( JText::_( 'Welcome to my site' ), $name, $sitename);
		$subject 	= html_entity_decode($subject, ENT_QUOTES);

		if ( $useractivation == 1 ){
			$message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password);
		} else {
			$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL,$username, $password);
		}


It seems this line has no effect on passing the password.
 function _sendMail(&$user, $password, $emailuser, $emailadmins)


Please help me with this.

Thanks,

Laure
Max_admin 29 Sep, 2008
Hi Laure, I think you sent me the login info to check this issue somewhere before but I can't find them now ? could you please send them again at a PM and I will check this problem for you!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
UHU 29 Sep, 2008
Hello Max,

Thank you. I sent you an email instead.

Thank you,

L....
UHU 01 Oct, 2008
Hello Max,

I didn't get a reply from you. Did you find a solution to this? I gave you login at your email address.

Can you see how to fix this?

Thank you,

Laure
Max_admin 01 Oct, 2008
Hi Laure, I will check this today, don't worry, its only unexpected issues keep popup!

Best regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
UHU 03 Oct, 2008
Unexpected problems? Tell me about it :wink:

Give me your conclusion when you know what's causing the problem.

Thanks,

Laure
Max_admin 03 Oct, 2008
Hi Laure,

Well, I will tell you some when I email you in reply for the issues๐Ÿ™‚ I will do my best to have them ready today.

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
UHU 14 Oct, 2008
Hello Max,

I can't find your reply anywhere. Please don't leave me hanging.

Thank you,

Laure
Max_admin 14 Oct, 2008
Hi Laure,

Actually I tried to login again and it said wrong password which means you blocked my access and I thought you got it solved ?

I'm not sure whats the problem you are having now but if its only the password not included in the email then I have an easy patch for this one.

Let me know!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger