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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -