[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [websites/identity-kde-org] protected: Send mails in a different way
From: Ben Cooksley <bcooksley () kde ! org>
Date: 2013-05-31 23:41:37
Message-ID: 20130531234137.77C27A6067 () git ! kde ! org
[Download RAW message or body]
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/e72b70d27735f07fd4ee516d2a85959777f1d5e8
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' => array(
'adminEmail' => 'webmaster@example.com',
- 'devApplicationEmail' => 'webmaster@example.com',
+ 'registerNotify' => 'webmaster@example.com',
'registrationUnit' => 'ou=people,dc=kde,dc=org',
'defaultGroup' => 'users',
'developerGroup' => 'developers',
diff --git a/protected/controllers/DeveloperApplicationController.php \
b/protected/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/notifyDeveloperApplication', array('model' => $model)); \
+ $this->sendEmail(Yii::app()->params['adminEmail'], \
'/mail/notifyDeveloperApplication', array('model' => $model)); // Now we send the \
mail to the supporter if( $model->supporter instanceof User ) {
$this->sendEmail($model->supporter->mail, \
'/mail/confirmDeveloperApplicationSupport', array('model' => \
$model));
diff --git a/protected/controllers/RegistrationController.php \
b/protected/controllers/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/notifyRegistration', \
array('model' => $model)); \
+ $this->sendEmail(Yii::app()->params['registerNotify'], \
'/mail/notifyRegistration', array('model' => $model)); // Give the user a page \
informing them of their account details $this->render('complete', array('model' => \
$model)); Yii::app()->end();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic