I wanted a function to send to my email

Asked

Viewed 33 times

0

function envia_email(){

    var nome = $('#ContactName').val();
    var email = $('#ContactEmail').val();
    var mensagem = $('#ContactComment').val();

    //VALIDAR EMAIL 

    //VALIDAR NOME 
    if(nome == ''){
         alert('Insira um nome!');
         return false;
    }

    //VALIDAR MENSAGEM 
    if(mensagem == ''){
         alert('Insira uma mensagem!');
         return false;
    }

      $.ajax({
               type: "GET",
               data: {},
               url: "http://sinditac.siteseguro.ws/email?nome="+nome+"&email="+email+"&mensagem="+mensagem,
               dataType : 'text',
               async: false,    
               success: function(msg){

                   alert(msg);
               },
                error: function(data) {
                    alert("erro");
                    FailureCallBack(data);
                }
            });   


} 


function valida_email(email){

}
  • right, what’s the problem ?

  • wanted a function that sent to my direct email , the way I put it works right on intel XDK more need something that I can forward direct to my email

  • describes it in the question before they close it

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.