Surendra Sharma

Surendra Sharma

Search This Blog

Showing posts with label CMS. Show all posts
Showing posts with label CMS. Show all posts

Monday, March 15, 2021

Sitecore forgot password configuration with Sendgrid

Recently I worked on forgot password functionality from where user can get new password in his inbox through SendGrid in case if he forgot the Sitecore login password.

My Sitecore instance is on Azure. 

Open Kudu

I create a patch file at \site\wwwroot\App_Config\Include\zzz\MyPatchFile.config file and in <settings> section add below SMTP details lines.

<setting name="MailServer" value="" />

<setting name="MailServerUserName" value="apikey" />

<setting name="MailServerPassword" value="4565655676hkjsd7868jkhkj" />

<setting name="MailServerPort" value="587" />

Save your changes.

If you are using SSL security, you must also add the following setting to the configuration file \site\wwwroot\Web.config:



      <smtp from="">

        <network host="" password="4565655676hkjsd7868jkhkj" userName="apikey" port="587" />





Save your changes.

You need to change the sender of the Forgot your Password email to a valid email address. You can also edit the subject and content of the email. To do this, follow these steps:

  • Log in to Sitecore as an administrator.
  • In the Launchpad, open the Desktop, and select the Core database.
  • In the Content Editor, navigate to /sitecore/system/Settings/Security/Password recovery/Password Recovery Email.
  • Enter a valid email address in the Sender email address field, and change the other fields as you need.

Sitecore Forgot Password configuration

Now if any user forgot his password, 

  • Visit to /sitecore/login page. 
  • Click on "Forgot your password?"
  • Enter Sitecore user name
  • Click on Send button

You should receive a email with username with newly generated password.

Monday, June 17, 2019

Total Page View Crossed 250000

I am very excited to share that today my Sitecore blogpost crossed magical number 250,000+ page view all time.

Thanks for all the visitors and followers. I started this blog to share my ideas and findings with rest of the world. I hope this help people around the world in some useful and meaningful ways.

I will continue to share my real life experiences with you all in same way.

Stay tuned for some upcoming cool ideas ,implementations and sample code.

Pageviews all time history
Pageviews all time history

Saturday, February 9, 2019

Multiple bucketing structure in single Sitecore instance

When you are bucketing items in Sitecore, by default it will be reorganized all child items by creating folders according to datetime order in year, month, day, hour, and minute.

Datetime Structure
Datetime Structure
But what if you want one datetime order at one place and for some other items you want all child items should rearranged in alphabetic order or may be by creating folders according to GUID characters.
How to achieve it?

To create a multiple bucketing structure in Sitecore:

1.    Visit to the “/sitecore/system/Settings/Buckets/Item Buckets Settings”. Click on Edit rule in Rules for Resolving the Bucket Folder Path field:
Item Bucket Settings
Item Bucket Settings

2.    Create rules by selecting a condition and an action.

Here action specifies the bucket folder structure. Only bucket items that match the condition will use the action.

Bucket Rule
Bucket Rule

For example, above rule creates alphabetic bucket structure as:

Alphabetic Ordering of bucket items
Alphabetic Ordering of bucket items

Now you have bucketing structure according to datetime and alphabetic order in one Sitecore instance. However you can create any number of such ordering by using such rules.

Isn’t that a cool feature???