Skip to Content
Sitecore Cookbook for Developers
book

Sitecore Cookbook for Developers

by Yogesh Patel, Patel Y Sunderbhai
April 2016
Beginner content levelBeginner
338 pages
7h 38m
English
Packt Publishing
Content preview from Sitecore Cookbook for Developers

Using publishing events to send a publish completion e-mail

Sitecore has no out-of-the-box provision to notify content authors when publishing gets completed or fails. Notifying users becomes very important when a longer publishing gets completed and, even more importantly, when it fails in order to remind them to publish it again.

In this recipe, you will learn how we can send e-mails to the publisher user on publishing completion using the publish:complete event. After this, you will be able to send e-mails after publishing fails or expires.

How to do it…

We will first create an event handler class that will extract all publishing parameters and send an e-mail with publishing details:

  1. In the SitecoreCookbook project, create a new SendEmail class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Azure for Developers

Hands-On Azure for Developers

Kamil Mrzygłód

Publisher Resources

ISBN: 9781784396527Supplemental Content