This question already has an answer here:
I create many newsletters. Is it possible to add a php form in email ? I explain, the customer open this email and on this email he see an input to add his email. Is it possible for me to keep the data ? For example we can imagine a simple input to subscribe newsletter.
</div>
ya its possible... you need have a form in your email template and in form action you need to specify the php file which is there in your domain
E.x:
in your email template
<form method="GET" action="http://www.yourdomain.com/back_end_file.php">
<label>Email id</label>
<input type="text" name="email" />
<input type="submit" value="submit" />
</form>
In your server file i.e : http://www.yourdomain.com/back_end_file.php
<?php
echo $email = $_GET['email'];
?>
If it gives some cross domain issue then paste below code in first line in http://www.yourdomain.com/back_end_file.php this file
<?php header('Access-Control-Allow-Origin: *'); ?>
I hope this works...