Support » Plugin: Contact Form 7 » how to include a file in the email body

  • 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?



  • The topic ‘how to include a file in the email body’ is closed to new replies.