Hi,
How can i create a new mail(Outlook) item based on predefined template in SharePoint using Client Side script.
Technology Tips and News
Hi,
How can i create a new mail(Outlook) item based on predefined template in SharePoint using Client Side script.
Hi,
We can use Mailto to achieve it, the following script for your reference:
<script type="text/javascript"> var email=('abc@abcmail.com'); var subject = ('My Feedback'); var cc = ('abc@abcmail.com'); var bcc = ('abc@abcmail.com'); var body = ('I am the body of the feedback that you are sending.'); document.write( '<a href="mailto:' + email + '?subject=' +subject+ '&cc=' +cc+ '&bcc=' +bcc+ '&body=' +body+ '">' + 'Click here to send feedback' + '<' + '/a>'); </script>
More information:
http://www.brighthub.com/internet/web-development/articles/87504.aspx
http://jsfiddle.net/james2doyle/66PxB/
Best Regards,