1App.controller('emailConfirm', function(SERVER_URL,$scope,$http, $rootScope, dbservice){ 2 //get rootScope from module for check menu 3 $rootScope.checkMenu(); 4 //Get rootScope from EmailInput 5 $scope.customer = $rootScope.customer; 6 $scope.person = $rootScope.person; 7 $scope.question = $rootScope.question; 8 //Check Data 9 if($scope.customer==undefined && $scope.person==undefined && $scope.question==undefined){ 10 window.location = "#EmailInput"; 11 } 12 $scope.buttonClicked = false; 13 $scope.getEmailClient = function(){ 14 $("#uploadingAnim").css("display","inline"); 15 //Check buttonClick 16 if($scope.buttonClicked==false){ 17 //$scope.sendingEmail($scope.email ,"Customer - Tanomo",emailContent); 18 $scope.sendingEmail(); 19 window.location = "#EmailComplete"; 20 $scope.buttonClicked = true; 21 } 22 };/* end function */ 23 /**-------------------------------------------------------- 24 * SEND EMAIL 25 * @author Saly Sakey 26 * @description Function for remote sending email function 27 --------------------------------------------------------*/ 28 $scope.sendingEmail = function(){ 29 var email = __env.emailMDR; 30 $scope.tel = $scope.customer.tel; 31 var subject = "Customer-Tanomo"; 32 var emailBody = "éåãäºæ¥æ å½è \n " 33 +"\n" 34 +"ãã¼ã ãã¼ã¸ããè¦ç©ãä¾é ¼ãéä¿¡ããã¾ããã®ã§ã \n" 35 +"ä¸è¨å 容ã«ã¤ãã¦ã確èªãã ããã \n" 36 +"\n" 37 +"ä¼ç¤¾åãããï¼"+$scope.customer.name+" \n" 38 +"ã客æ§åããï¼"+$scope.person.name +" \n" 39 +"TELããããï¼"+$scope.tel+"\n" 40 +"E-MAILããï¼"+$scope.person.email +" \n" 41 +"Questionããï¼"+$scope.question+" \n" 42 +"\n" 43 +"以ä¸ãã確èªãã ããã \n" 44 +"\n" 45 +"éåãå³ãã®ãï¼ãµã¼ãã¹ç®¡çã·ã¹ãã \n"; 46 dbservice.sendEmail(email,subject,emailBody, function(data){ 47 console.log(JSON.stringify(data)); 48 }); // end sendMail 49 };/* end function */ 50 51});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.