September 2010
Intermediate to advanced
272 pages
5h 16m
English
In this task we are going to create an activity that can send an e-mail message to a target user.
Add a new code file to the ActivityLibrary project named SendEmail.cs. Then, replace all code that is created by default with the following code:
using System.Activities; public sealed class SendEmailActivity : CodeActivity { public InArgument<string> from { get; set; } public InArgument<string> host { get; set; } public InArgument<string> userName { get; set; } public InArgument<string> password { get; set; } public InArgument<string> to { get; set; } public InArgument<string> subject { get; set; } public InArgument<string> body { get; set; } public OutArgument<string> result ...