Redirecting in REM 4: Notification emails and Login pages

Problem:

The email notification after an enrollment should be sent to an other email-address (not to site administrators in REM). Is it possible hook up on REM's notification-procedure in order to do this ?

Can you give a short technical description about how you recommend to implement this ?

Solution:

IMPORTANT: Before you modify REM4Configuration.xml file make a backup of it.

Notification emails:


By default all REM4 email notifications are sent to the site administrators or learners. You'll need to: 
 
1) Open REM4Configuration.xml file located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\ 
2) Find the tag located by path Configuration/EmailTemplates. This tag contains recipients configuration for each notification type. e.g. 
 
 < Notification Type="StudentHasEnrolled" >
        < Recipients >
          < Recipient Role="SiteCollectionAdmins"/ >
        < /Recipients >
      < /Notification >
 < Notification Type="StudentHasEnrolled" >
 
        < Recipients >
 
          < Recipient Role="SiteCollectionAdmins"/ >
 
        < /Recipients >
 
< /Notification >
 
To add (or replace) new recipients just add (or replace) the Recipient tag with a known value of Role attribute. Known values are the following:  
- SiteCollectionAdmins,         
- Learner,         
- Teachers,        
- LocalAdministrators,        
- LineManagers,        
- StaffManagers 
 
Another way (more advanced way) to add a new recipient is adding a Recipient tag with a DynamicProvider attribute. Value of the attribute should be fully qualified name of class that implements Elearningforce.Sharepoint.LMS.Enrollment.EmailTemplates.IRecipientsProvider interface. For example default configuration for approval reminder notifications:   
 
 < Notification Type="ApprovalReminder" >
        < Recipients >
          < Recipient DynamicProvider="Elearningforce.Sharepoint.LMS.Enrollment.EmailTemplates.ApproversRecipientProvider, Elearningforce.Sharepoint.LMS.Enrollment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a0480eb0bc0ac42a"/ >
        < /Recipients >
 < /Notification >
                            
Important: you'll have to modify the configuration file on each WFE. Changes will be discarded when version is updated.


Login pages:

All default Login Pages in REM 4.1 are stored in  REM4Configuration.xml file: 
1) Open REM4Configuration.xml file located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\ 
2) Find the following place:

< Navigation>
< DefaultUrls>
< RoleUrl Role="LocalAdministrator" Url="" />
< RoleUrl Role="StaffManager" Url="" />
< RoleUrl Role="LineManager" Url="SitePages/StudentPage.aspx" />
< RoleUrl Role="Teacher" Url="SitePages/Welcome.aspx" />
< RoleUrl Role="Learner" Url="SitePages/StudentPage.aspx" />
< RoleUrl Role="Candidate" Url="SitePages/Welcome.aspx" />
< RoleUrl Role="Anonymous" Url="SitePages/Welcome.aspx" />
< /DefaultUrls>
< /Navigation>

3) Here you see Login pages for SharePoint groups (SharePoint groups not specified in the config are logged in to Welcome.aspx). You can change pages in URL parameter, but you cannot add new records for the other SharePoint groups.

Important: you'll have to modify the configuration file on each WFE. Changes will be discarded when version is updated.
Important: Since REM 4.2 there is REM Publishing feature. After you activate REM Publishing feature, Login page settings in REM4Configuration.xml aren't taken into account. With REM Publishing feature activated Welcome.aspx page is the only Login page for all SharePoint groups.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Article is closed for comments.

Powered by Zendesk