I am working on a SharePoint Hosted App, and trying to send an email with client-side code. Would I have to use a Workflow or an Event Receiver to do this? Can’t seem to find any information on this.
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add a Workflow from Visual Studio to your project. Drag and drop Email from the toolbox into your Workflow, setup the parameters and you’re workflow is now configured to send an email.
From the client side, you need to include
sp.workflowservices.js. Then all you need to do is retrieve the workflow instance and start it.