I am working on a project in which I am displaying a PDF form which the user has to fill out. After filling out the form, I would like to send out the PDF as an email on button click. At first, I am directly loading the PDF from html directory. Currently I am able to fill the pdf form with many different ways, but I don't know how to send the filled pdf as an email. THank you.
Code :
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>PDF edit</title>
</head>
<body>
<style>
</style>
<?php
echo "<iframe src=\"editable.pdf\" width=\"100%\" style=\"height:300%\"></iframe>";
?>
<p>
<button type="button">Send!</button>
</p>
</body>
</html>
Sample editable file for reference : https://www.dropbox.com/s/8qemo1a773mochp/editable.pdf?dl=0