WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Dynamic reciever of email 2? (1 post)

  1. eivind1984
    Member
    Posted 9 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.