Hello,
I have successfully sent text/html emails with the php mail function in the past. An example of this would be:
$message = "<html><body>Hello</body></html>";
mail($email, $subject, $message, $headers)
where I had set one of the headers to have Content-type: text/html
However, I have been unsuccessful at finding an example of how to send an email with the php mail function that has php in the message. What I really want to do is something like this:
$message = "<html><body><?php include 'http://www.mysite.com/mypage.php'; ?></body></html>";
Where mypage.php would be an existing php page.
I tried this with the text/html content-type, but the email came back blank. When I tried Content-type: text/php, then my email actually showed the code, rather than what the code should do.
Anyone know how to do this?