im new to sharepoint. im trying to make a state machine workflow with a function to send email notification to user and checker (basically to check the file uploaded). somehow im stuck when using send email tool in vs2010. i have found a possible solution by using something like this "createTask1.TaskProperties.SendEmailNotification = true;". will you be kind enough to give suggestion or simple to understand tutorial on how to solve this problem
One solution is to use the SPUtility.SendEmail, if you're developing the workflow yourself.
SPUtility.SendEmail(SPContext.Current.Site.OpenWeb(), true, false, "email@example.com", "Hello, this is Steve mailing you");
Presuming you have a column for Person/People as type, you can do this: If you are using SharePoint Designer 2013, you can set the If condition first and for the THEN, click on the "Action" menu drop down and select "Send Email"
This is what I did:
Step 1: Select Action "Send Email"
Step 4 and 5: From the "Lookup for Person or Group" window, choose the correct source in the source "Field from source"; in my case, the column titled "Dept. Stakeholder" Step 5: Choose "Return field as" field as 'Display Name' and click ok
The above steps created the correct algorithm engine to select the respective user from the "Current Item" field. In testing phase, I switched users for an assignment multiple times in the Column value in the Document Library. As long as the primary parameters to trigger the workflow met, SP activated the workflow and send out the email.