# if valida is successfull than send mail to user otherwise don't.

**URL:** <https://www.phphelp.com/t/if-valida-is-successfull-than-send-mail-to-user-otherwise-dont/18945>\
**Category:** Javascript & Ajax\
**Created:** [November 19, 2012, 10:10pm UTC](https://www.phphelp.com/t/if-valida-is-successfull-than-send-mail-to-user-otherwise-dont/18945 "2012-11-19T22:10:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zakiayousaf](https://www.phphelp.com/user_avatar/www.phphelp.com/zakiayousaf/32/807_2.png) [@zakiayousaf](https://www.phphelp.com/u/zakiayousaf)\
**Post date:** [November 19, 2012, 10:10pm UTC](https://www.phphelp.com/t/if-valida-is-successfull-than-send-mail-to-user-otherwise-dont/18945/1 "2012-11-19T22:10:56Z")

</div>

$().ready(function() {

$("#contactForm").validate({  
rules: {  
contactName: “Please Enter Full Name”,  
contactBody: “Please Enter full message here”,  
contactEmail: {  
required: true,  
email: true  
}  
}   
});

});

this validate perfect , what i need is if it is successfull than send ajax request or mail to user otherwise don’t.

---

<div class="post-metadata">

**Author:** ![m11](https://www.phphelp.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@m11](https://www.phphelp.com/u/m11)\
**Post date:** [November 20, 2012, 8:16pm UTC](https://www.phphelp.com/t/if-valida-is-successfull-than-send-mail-to-user-otherwise-dont/18945/2 "2012-11-20T20:16:17Z")

</div>

You need to look at the plugin you are using for validation.
