
Microsoft Windows Workflow Foundation 4.0 Cookbook
By :

The process of sending an e-mail would consume some time—maybe a few seconds or even minutes. It would be a waste of time and resources for our applications to stop and wait for an e-mail sending action to complete. Because sending e-mail is time-consuming, a better design is to strip this feature out as an independent WCF workflow service and host that service in IIS7.
We need the SendEmailActivity
activity to send an e-mail. We can check this activity in Chapter 5, Custom Activities.
Create a WCF workflow service application:
Create a WCF workflow service application and name it HostingWorkflowServiceInIIS7
.
Add SendEmailActivity to the toolbox:
In the Toolbox tab, right-click and select Choose Items. In the opening dialog, click Browse and navigate to the ActivityLibrary.dll
from the sample code of chapter05
. Next, check SendEmailActivity
:
Click OK. We will find SendEmailActivity
in the toolbox:
Create a SendEmail workflow...
Change the font size
Change margin width
Change background colour