Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

eivind1984 on "[Plugin: Contact Form 7] Dynamic reciever of email 2?"

$
0
0

Hi! Thank you for a great plugin.

I have a question / feature request:

Would it be possible to dynamically specify the reciever of email 2?

I have two scenarios where this would be useful. Both require the setup of a "base" form, for example a form that takes registration to events. This form would be used in several posts, for example multiple events (with different contact persons).

Setting it by shortcode
First scenario is a site where events are published as basic posts. In the bottom of the post I would add the shortcode for the contact form, but in addition to the regular shortcode parameteres, I would add "recepient=email@domain.tld". That way, all registrations being entered to that event would also be emailed to email@domain.tld.

Grabbing reciever from custom field
Second scenario is a bit more advanced. Events are published as a custom post type. An email address is registered in a custom field. When setting up the contact form, in the reciever-field of email 2, I add the name of this custom field. Whenever someone publishes an event in the custom post type, they'll add their email address in the custom field. Whenever a registration is submitted to the event, contact form sends a copy of the registration to the email in the custom field.

Do you think that would be possible now, or in a future upgrade?

Thanks again :)

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


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>