Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $scope.sendMail = function () {
  2. $scope.to = "To@gmail.com";
  3. $scope.cc = "CC@gmail.com";
  4. $scope.bcc = "bcc@gmail.com";
  5. $scope.subject = "Confirmation";
  6.  
  7.  
  8. var link = "mailto:" + $scope.to
  9. + "?cc=" + $scope.cc
  10. + "&bcc=" + $scope.bcc
  11. + "&subject=" + $scope.subject
  12. + "&body=" + "Test Body";
  13. +"&attachment="
  14.  
  15. window.location.href = link;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement