如何在angularjs中使用mailto附件

时间:2016-01-22 12:37:36

标签: angularjs mailto

我想添加附件路径,如何在mailto中添加附件。 我试过跟随但是没有用。

  $scope.sendMail = function () 
   {
        $scope.to = "To@gmail.com";           
        $scope.cc = "CC@gmail.com";
        $scope.bcc = "bcc@gmail.com";
        $scope.subject = "Confirmation";       

        var link = "mailto:" + $scope.to
                 + "?cc=" + $scope.cc
                 + "&bcc=" + $scope.bcc
                 + "&subject=" + $scope.subject
                 + "&body=" + "Test Body";
                +"&attachment=" 

        window.location.href = link;     
    }

0 个答案:

没有答案