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 and name it
In the Toolbox tab, right-click and ...