Support » Plugins and Hacks » how to include a file in the email body
3 years, 10 months ago
I would like to be able to include information from a text file in the email being sent out using Contact Form 7.
I noticed the documentation indicated you can use <php ?> commands in the email body, so I attempted to use:
<?php echo “yes”; ?>
<?php echo readfile(“/home/myroot/public_html/details.txt”); ?>
but nothing shows up in the outgoing email.
Can someone let me know if this is possible?