Problem with Registration eMails

Permalink
I am building a website that requires manually approved registration. The email that is sent to the user indicating Approval Required contains variables such as $siteName and $uName which are not being printed in the email Subject or Body. The email that is sent to the user indicating Registration Approved, however, contains these same variables and they are being printed in the email Subject and Body. I cannot figure out why the variables work in the second email but not the first one. Any suggestions would be greatly appreciated. Thanks.

Tanneme
 
hutman replied on at Permalink Reply
hutman
What version of Concrete5 are you using?
Tanneme replied on at Permalink Reply
Tanneme
Hello, hutman. Up until a few minutes ago, I had been using version 5.7.5.7 of concret5. I just noticed that a newer version was posted on Monday so I upgraded to 5.7.5.8 and then reran the registration process for a test user and the above described problem still exists. Thanks.
hutman replied on at Permalink Reply
hutman
Around line 214 of your /concrete/controllers/single_page/register.php you will see these lines

$mh->addParameter('uEmail', $_POST['uEmail']);
$mh->addParameter('site', Config::get('concrete.site'));


Replace them with this

$mh->addParameter('uName',  $_POST['uName']);
$mh->addParameter('uEmail', $_POST['uEmail']);
$mh->addParameter('siteName', Config::get('concrete.site'));
Tanneme replied on at Permalink Reply
Tanneme
Hello, hutman, once again. How awesome, thanks to you, problem solved! I had been trying to find the solution for days but was looking in the wrong folders and/or files. I had looked at the PHP files in the /concrete/mail folder and I had examined the register.php file in the /concrete/single_pages folder. Obviously I needed to be in the /concrete/controllers/single_page folder. Who knew?

So, how can I better learn the folder / file structure so that I might better navigate all the behind-the-scenes stuff? I have another problem that I have been trying to solve regarding the placement of some CSS code for a table that I have created on a webpage. I don't mind the digging. Just wish there was a better way to figure out where to dig. Thanks again for your help. Suspect we will be chatting again.