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
Post a Comment