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”; ?>

    and

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

    Thanks,

    Earl

    http://wordpress.org/extend/plugins/contact-form-7/

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