Skip to content
Loading
  
  •   
  •   
  •   
  •   
  •   
  •   
  • "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">  
  • "text/javascript">  
  • $(function () {  
  • $("#btnSend").click(function (e) {  
  • e.preventDefault();  
  • var record = {  
  • "htmlContent": $("#htmlContent").val(),  
  • "toEmail": $("#toEmail").val(),  
  • "subject": $("#subject").val(),  
  • "htmlContent": $("#htmlContent").val(),  
  • "contact": $("#contact").val(),  
  • };  
  • $.ajax({  
  • url: '/Genric/SendMail',  
  • type: "GET",  
  • data: record,  
  • contentType: "application/json; charset=utf-8",  
  • success: function () {  
  • $("#form").reset();  
  • },  
  • error: function () {  
  • },  
  • failure: function () {  
  • }  
  • });  
  • });  
  • });  
  •    
  • My result is 
     

    Demo

    Inbox

    info@

    4:19 PM (56 minutes ago)
     
    to me
    Demo  -not here UserName