I have tried, and successfully failed, to determine a way to inject the emailed item's value from a universal custom column into the default alert emails generated by SharePoint, in both the subject and body. I'm hoping someone in the community here can assist.
Initially, we attempted to add content directly to the XML alert template file.
We also attempted working through the information in:
- Customizing Alert Notifications and Alert Templates in Windows SharePoint Services 3.0
- How To: Customizing alert emails using IAlertNotifyHandler
We've found a number of other blog posts and sites that seem to just copy and paste from the examples in the above two. All of the discussions we've worked through either talk about changing the formatting of an email template, or show you how to build a completely custom email and send that instead of the normal system-generated email. I've been through the questions here and it's the same story...
My goal is to not reinvent the wheel. I want in some sense of the idea, to let SharePoint build its email, then catch it, inject content, then send it on its way.
So, two parts to the question:
- Can someone explain the sequence from the timer job starting to emails hitting the mail server?
- Does anyone have a known method for either
- intercepting an email, injecting content, then releasing it, or
- invoking the default alert handler within a custom alert handler, so that we don't have to rewrite all of the default email templates in C#?