• Resolved jberg1

    (@jberg1)


    Hello,
    Is there a way to set the recipient of the form dynamically? Possibly through the shortcode or a custom field?

    What I’m trying to do is re-use the same form on various posts/pages and the only change is the recipient. So I want to be able to set the recipient from the post/page I’m adding the form to. Instead of duplicating the form and changing recipient.

    Is it possible to set the recipient in the form shortcode when placing the form?
    ex. [contact-form-7 id="123" title="Form Name Here" recipient="wheretosend@mail.com"] Or is there another option?

    I have looked into this post which utilizes the Dynamic Text Extension,
    sevenspark.com Tutorial. It works, however this a potential problem because spammers could use the output code to change the recipient and use the server to send my form as spam to others.

    I’m not as concerned about exposing the email address it is going to, but more protecting the form from being hijacked.

    Thanks for any help/direction you can provide.

    https://wordpress.org/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • Thread Starter jberg1

    (@jberg1)

    I guess the method outlined in the sevenspark Tutorial is the only way I could find to do this. The only other way was using another plugin Contact Form 7 – Dynamic Mail To, but that basically did the same thing.

    I just implemented the Google reCaptcha on the form to protect from being hijacked and submitted from another server to a different recipient. Which I found I could do without the reCaptcha.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic Recipient’ is closed to new replies.