Sending emails is one task that every website has to be capable of. How many emails you plan to send should certainly determine how you go about sending that email. As we do not yet know how many emails we plan to send, we will initially rely upon the tools that are provided in the .NET framework to send our email. For brevity, we will look at the specific methods from this class here.
As with all our objects, we will have the MEF Export attribute in place that makes this a Pluggable class. The class itself inherits from our IEmail interface. We will have a couple of constants declared—one for the website's receiving the email account and another for the website's sending the email account. (We could have used one variable for both, but a little flexibility never hurt anyone!)