Skip to content

Commit

Permalink
user registration mail changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wildabyss committed Mar 8, 2010
1 parent 9b51ac5 commit f8349ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/courses/modules/adminuser/actions/actions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ protected function submitForm(sfWebRequest $request, sfForm $userform)
$user = $userform->save();

// send out an email to the newly created user
$msg = "Dear ".$user->getUserName().",\n\nYou have been registered with SkuleCourses (http://courses.skule.ca). Please note the following information:\n\n";
include(sfContext::getInstance()->getConfigCache()->checkConfig('config/skuleGlobal.yml'));
$msg = "Dear ".$user->getUserName().",\n\nYou have been registered with SkuleCourses (http://{$skuleGlobalParams['domain']}";
if (isset($skuleGlobalParams['port']) && $skuleGlobalParams['port']!="") $msg .= ":{$skuleGlobalParams['port']}";
$msg .= "). Please note the following information:\n\n";
$msg .= "Credential Level: ".helperFunctions::getUserType($user->getTypeId());
$msg .= "\nPassword: ".$user->getPassword()."\n\nSkuleCourses Webmaster";
helperFunctions::sendEmail(array($user->getEmail()),"SkuleCourses User Registration", $msg);
Expand Down

0 comments on commit f8349ae

Please sign in to comment.