March 19, 2012

Workflow
















Click on the Workflow Activated and paste this below coding in that function.
 private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e) 
 { 
 StringDictionary headers = new StringDictionary(); 
 headers.Add("to", "vidhya@themajesticpeople.com");
 headers.Add("from", "avidhume@gmail.com");
 headers.Add("sub", "Test mail");
//SPUtility.SendEmail(workflowProperties.Web,false,false,"avidhume@gmail.com", "Hello World", "This is a Sample Mail"); 
 SPUtility.SendEmail(workflowProperties.Web, headers, "hi hw r u");
 }

No comments:

Post a Comment