Thursday, May 5, 2016

Custom Setting for Email reminder subject and default text

Hi All,
In my current project i faces issue regards Email Reminder Configuration. I am able to set the Reminder Text, Recipients & time as described in doc below:
But I face issue to configure the Subject of email & also Reminder default text.
So in email subject comes by default "Reminder from Sitecore" & in reminder text default text come as "This is a reminder from Sitecore regarding the item: '{item}' in the database '{database}". The leading text to use for email reminders. Custom text will be appended.
So after some R&D I found that by using patch config we can update those things. Patch show as below:
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
    <settings>
      <!-- TASKS - EMAIL REMINDER SUBJECT The subject to use for email reminders.Default value: Reminder from Sitecore -->
      <setting name="Tasks.EmailReminderSubject" value="Custom Reminder by CustomEmailReminder.Config" />
      <!-- TASKS - EMAIL REMINDER STANDARD TEXT The leading text to use for email reminders. Custom text will be appended. Default value: This is a reminder from Sitecore regarding the item: '{item}' in the database '{database}'
-->
      <setting name="Tasks.EmailReminderText" value="This is a test reminder from Sitecore regarding the item: '{item}' in the database '{database}'" />
    </settings>
  </sitecore>
</configuration> 
Hope this is helpful for you. Please give suggestion and feedback both are welcome.

Regards

No comments:

Post a Comment