Contact Form 7
Dynamic Email by parameter value ? (5 posts)

  1. dacho
    Posted 2 years ago #

    Hi mates

    I want to use 1 contact ID
    And change the value of the "sendto" e-mail address according to where I am.
    Is a large quantity of different addresses and seems unnecessary to create each separate form
    All I need is just to give a parameter to the code of ContactForm7

    Is it possible this way?

    [contact-form-7 id="XXX" title="bla bla bla" sendto="dynamic-value@g.co"]


  2. Mattki
    Posted 2 years ago #

    Hi Takayuki,

    I need exactly the same feature! Is there any chance that you can implement it? That would be great!

    Best regards

  3. dacho
    Posted 2 years ago #

    I found a solution for this, do it like this:
    [contact-form-7 id="XXX" title="bla bla bla" email*="the-email-that-you-want@co.co"]

    Too bad the staff does not give support

  4. Mattki
    Posted 2 years ago #

    Hi dacho,

    Thanks for your hint! Unfortunately it does not work with my site. Is there any special tag to use for the mail?


  5. Mattki
    Posted 2 years ago #

    I found a more flexible solution in using the plugin "Contact Form 7 Dynamic Text Extension", which allows to include custom fields in the forms. The value of the custom fields can be modified by the wp function update_post_meta. In this way I hand name and email of the recipient over to the form.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.