WordPress.org

Forums

[Plugin: Contact Form 7] Contact form 7 and PHP (2 posts)

  1. Dalhia
    Member
    Posted 6 years ago #

    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

  2. digitz
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic