Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermecarvalhocarneiro/b3308c0e60010993fa37 to your computer and use it in GitHub Desktop.
Save guilhermecarvalhocarneiro/b3308c0e60010993fa37 to your computer and use it in GitHub Desktop.
SendMail JS
$scope.sendMail = function(){
$http(
{
method: 'POST',
data: $.param($scope.dataForm),
url: '/company/sendmail/',
headers: {
'X-CSRFToken': $cookies['csrftoken']
}
}).success(function(data, status, headers, config){
console.log(data);
}).error(function(data, status, headers, config){
console.log(data)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment