Not really sure why i am puttting the ticket in but I dont have many options and these usually go unanswerd.

For some reason i can email from Outlook and the webmail. But i have a script I have been using for months that would auto reply to a form that was submitted and it is generating a error and not emailing it. There is a bit of code in the form that has some checks to see if the forms are sent.

PHP Code:
           //now when the validation is done we check if the error variable is false (no errors)
            
if(error == false){
                
//disable the submit button to avoid spamming
                //and change the button text to Sending...Be Patient
                
$('#send_message').attr({'disabled' 'true''value' 'Sending...Be Patient' });
                
/* using the jquery's post(ajax) function and a lifesaver
                function serialize() which gets all the data from the form
                we submit it to send_email.php */
                
$.post("send_email.php", $("#contact_form").serialize(),function(result){
                    
//and after the ajax request ends we check the text returned
                    
if(result == 'sent'){
                        
//if the mail is sent remove the submit paragraph
                         
$('#cf_submit_p').remove();
                        
//and show the mail success div with fadeIn
                        
$('#mail_success').fadeIn(500);
                    }else{
                        
//show the mail failed div
                        
$('#mail_fail').fadeIn(500);
                        
//reenable the submit button by removing attribute disabled and change the text back to Send The Message
                        
$('#send_message').removeAttr('disabled').attr('value''Send The Message'); 
Its is not working and not sending the forms out. Any clues?..