WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Contact Form 7] Contact form 7 and PHP

[Plugin: Contact Form 7] Contact form 7 and PHP

  • hi,
    is there a way to insert php code in the sent message.
    In fact I want to send a generated url by custom field in my post to the user after he fill the Contact Form 7.
    Each URL changes by each post. Something like that :

    <?php $newsletter = get_post_custom_values("newsletter") ?>
    <?php echo $newsletter[0]; ?>

    And the url of the newsletter will be inserted in the email he recieves.

    Thx for your help

Viewing 1 replies (of 1 total)
  • You can insert anything that can be rendered before sending (e.g. CSS) but dynamic PHP tags, I’m not aware of.

    I think they will be sent in as plain text, unless the results page can process PHP.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] Contact form 7 and PHP’ is closed to new replies.