How to open Outlook new mail item with predefined template in SharePoint using Client Side Script

Hi,

How can i create a new mail(Outlook) item based on predefined template in SharePoint using Client Side script.

September 11th, 2015 9:18am

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,

Dennis

Free Windows Admin Tool Kit Click here and download it now
September 14th, 2015 2:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics