jquery - Populate php email body with div content -


i attempting send email using php email body populated contents of html table. getting no errors on console data not importing. ideas on missing?

email.php -

$admin = "sender@email.com"; $email = "recipient@email.com"; $subject = "alert activated"; $body = $_post['content'];  mail($admin, "$subject", $comment, "from:" . $email, $body); 

ajax-

$(document).ready(function(){      $('.export').click(function(){     $.ajax({      type: 'post',      url: 'email.php',      data: { content: $('#realparts-data').html()}         });     });      }); 


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -