Git commit e72b70d27735f07fd4ee516d2a85959777f1d5e8 by Ben Cooksley. Committed on 01/06/2013 at 01:41. Pushed by bcooksley into branch 'master'. Send mails in a different way M +1 -1 protected/config/main.php.dist M +1 -1 protected/controllers/DeveloperApplicationController.php M +1 -1 protected/controllers/RegistrationController.php http://commits.kde.org/websites/identity-kde-org/e72b70d27735f07fd4ee516d2a= 85959777f1d5e8 diff --git a/protected/config/main.php.dist b/protected/config/main.php.dist index b1a6c88..51ebdbb 100644 --- a/protected/config/main.php.dist +++ b/protected/config/main.php.dist @@ -102,7 +102,7 @@ return array( // application-level parameters 'params' =3D> array( 'adminEmail' =3D> 'webmaster@example.com', - 'devApplicationEmail' =3D> 'webmaster@example.com', + 'registerNotify' =3D> 'webmaster@example.com', 'registrationUnit' =3D> 'ou=3Dpeople,dc=3Dkde,dc=3Dorg', 'defaultGroup' =3D> 'users', 'developerGroup' =3D> 'developers', diff --git a/protected/controllers/DeveloperApplicationController.php b/pro= tected/controllers/DeveloperApplicationController.php index e9f0fea..b5393a8 100644 --- a/protected/controllers/DeveloperApplicationController.php +++ b/protected/controllers/DeveloperApplicationController.php @@ -186,7 +186,7 @@ class DeveloperApplicationController extends Controller protected function sendApplicationEmails($model) { // First we send the general mail to the site administrator - $this->sendEmail(Yii::app()->params['devApplicationEmail'], '/mail/notif= yDeveloperApplication', array('model' =3D> $model)); + $this->sendEmail(Yii::app()->params['adminEmail'], '/mail/notifyDevelope= rApplication', array('model' =3D> $model)); // Now we send the mail to the supporter if( $model->supporter instanceof User ) { $this->sendEmail($model->supporter->mail, '/mail/confirmDeveloperApplic= ationSupport', array('model' =3D> $model)); diff --git a/protected/controllers/RegistrationController.php b/protected/c= ontrollers/RegistrationController.php index 95f2616..0eaf39e 100644 --- a/protected/controllers/RegistrationController.php +++ b/protected/controllers/RegistrationController.php @@ -122,7 +122,7 @@ class RegistrationController extends Controller // Creation succeeded, so cleanup.... $tokenModel->delete(); // Inform the site administrator of the account creation - $this->sendEmail(Yii::app()->params['adminEmail'], '/mail/notifyRegist= ration', array('model' =3D> $model)); + $this->sendEmail(Yii::app()->params['registerNotify'], '/mail/notifyRe= gistration', array('model' =3D> $model)); // Give the user a page informing them of their account details $this->render('complete', array('model' =3D> $model)); Yii::app()->end();