Hube2 / contact-form-7-dynamic-mail-to

Dynamic Mail Recipients for Contact Form 7
5 stars 1 forks source link

Supported by CF7 natively now #3

Open rtpHarry opened 2 years ago

rtpHarry commented 2 years ago

Thanks for publishing this code. I got halfway through building my own version of this plugin, using parts of these three related plugins, before I realised that CF7 actually supports this natively now.

If you put values on the select options, and look at the markup thats generated on the front end, the values will not be the ones you set them to.

It uses a feature called pipes internally, and maps them to a different value. This lets you safely do something like using a "department" select box, that has email addresses as values, and the actual email values won't be exposed to the public, or be tamperable.

Just thought I would post this as it might save some other developers time.

It's described here, but not explicitly acknowledged that it protects the values, so I thought it was poorly implemented at first:

https://contactform7.com/selectable-recipient-with-pipes/

Hube2 commented 2 years ago

Thanks for letting my know. I believe that this plugin stopped working some time ago, so hopefully no one is trying to use it. I should probably delete this but I don't like deleting. Never know what will come in handy in the future.