
288
CHAPTER 9 Building a Site ProviSioning SyStem
FIGURE95: Home page web parts
Configuring a Notification Workflow
To enable highly congurable email messages for the site request process, you may choose to make
use of SharePoint Designer (SPD) workows.
This type of workow can be edited quickly and easily by administrators, should they choose to
alter the emails sent to end users.
This approach does have a drawback: these workows must be recongured within each environ-
ment the solution is deployed to. If you are deploying to multiple environments and need to ensure
that the email sending logic implemented in one environment is identical to the email sending logic
in another environment, a different approach is necessary. Consider sending emails from the form
code itself, using
SPUtility.SendEmail(). You may retrieve email message text and settings from
a custom email settings list; be sure to include placeholders that can be replaced by dynamic data
pertaining to the site request, such as site name, approver, a link to the form to view and edit the
request, and more. By populating this list upon feature activation, you can avoid having to reconfig-
ure email messages in each environment you deploy your solution to.
In order to keep the code samples as clean as possible, and to demonstrate how SPD workows
enable solution administrators to fully control email messages sent from ...