This project has moved and is read-only. For the latest updates, please go here.

Modify Email Content

Topics: Developer Forum, Project Management Forum, User Forum
Jun 27, 2014 at 2:55 PM

I was wondering, how can I modify the content of the emails that the tool sends to the users? I want to modify the email template that is sent to the users when the assignment is returned.I want to modify this:

Current Message:
Assignment Course Title has been returned. (this is the part I want to modify)
<Course Link>

to avoid confusion on the users as to why the assignments were returned since the body of the email is too generic.

Thank you
Jul 2, 2014 at 12:33 AM
Yes, this can be controlled through the slkSettings.xml file. There's examples in there for new assignments and cancelling assignments. For returned emails you'll need to use a ReturnAssignment element e.g.
  <ReturnAssignment Subject="Assignment Returned: %title%">
      <slk:Body xmlns=""><p>Assignment <strong>%title%</strong> has been returned.</p></slk:Body>
SLK Coordinator
Jul 2, 2014 at 10:54 PM
Edited Jul 2, 2014 at 11:06 PM
After I make this modification to the slksettings.xml.dat file, will i see the changes on the email immediately? This is how the file stands after the modification
<EmailSettings ReminderDays="1,7">
      <NewAssignment Subject="New Assignment: %title%">
          <slk:Body xmlns=""><p>You have been assigned a new piece of work: <strong>%title%</strong>.</p>
<p><a href='%url%'>%url%</a></p></slk:Body>
      <CancelAssignment Subject="Assignment Cancelled: %title%">
          <slk:Body xmlns=""><p>Assignment <strong>%title%</strong> has been cancelled.</p></slk:Body>
      <ReturnAssignment Subject="Assignment Returned: %title%">
        <slk:Body xmlns=""><p>Thank you for completing the assignment <strong>%title%</strong>. You may review the returned course at the link below. A course instructor will contact you if further action is required. </p></slk:Body>
I have made some tests but it is still the same.
Jul 3, 2014 at 11:57 AM
You need to save the changes in SharePoint. Quick walkthough:
  1. Open the SharePoint Learning Kit Configuration page in Central Admin.
  2. Select the site collection to modify.
  3. Download the current slksettings.xml.
  4. Make your changes.
  5. Upload your changed slksettings.xml using the page.
Then the changes will take effect.
Jul 7, 2014 at 1:54 PM
Thank you. If I want the due date to also appear on the email, what is the name of the field that I should use? Also, how does the assignment reminder emails work?
Jul 7, 2014 at 11:49 PM
The currently available tokens are:
%name% - the name of the learner. Only in submit emails
%due% - only in reminder emails

For reminder emails there's a sample project which you can run as a scheduled task.
Jul 9, 2014 at 3:30 PM
Thanks for the help that you have provided me regarding this matter