0

I want to create a html table in the body of a mail with angular Js and mailto.

This is my code :

Html

 <button type="button ng-click=outlook()>email</button>

Javascript

$scope.outlook=function(){
    var emailId ="abc@gmail.com"
    var ccEmail ="xyz@gmail.com"
    var subject ="testing"
    var body= "<table><tr><td>Nbr</td><td>Name</td></tr></table>"

    window.location.href = "mailto:" + emailId + "?cc=" + ccEmail + "&subject=" + 
subject + "&body=" + body;
};

but it doesn't work.

Sébastien Temprado
  • 1,413
  • 4
  • 18
  • 29
Devesh
  • 19
  • 3

0 Answers0