Title: synthview's Replies | WordPress.org

---

# synthview

  [  ](https://wordpress.org/support/users/synthview/)

 *   [Profile](https://wordpress.org/support/users/synthview/)
 *   [Topics Started](https://wordpress.org/support/users/synthview/topics/)
 *   [Replies Created](https://wordpress.org/support/users/synthview/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/synthview/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/synthview/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/synthview/engagements/)
 *   [Favorites](https://wordpress.org/support/users/synthview/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 78 total)

1 [2](https://wordpress.org/support/users/synthview/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/synthview/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/synthview/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/synthview/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/synthview/replies/page/6/?output_format=md)
[→](https://wordpress.org/support/users/synthview/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Accented letters encoding issue for select fields](https://wordpress.org/support/topic/accented-letters-encoding-issue-for-select-fields/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/accented-letters-encoding-issue-for-select-fields/#post-9884253)
 * I’ve found the pipe technique and it does the job! Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9884252)
 * I’ve found there is a native way for CF7 to get the wanted result.
    Thanks anyway
   🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Accented letters encoding issue for select fields](https://wordpress.org/support/topic/accented-letters-encoding-issue-for-select-fields/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/accented-letters-encoding-issue-for-select-fields/#post-9883954)
 * and there is any way to differentiate between select > option text and value ?
   
   This way I could set a non-accented value to pass to my functions but keep correctly
   written text for humans
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9883011)
 * now print_r($args); echo $recipient; die; works!
 * I see it bugs on when I have accented letters in my select options.
    I’ve tried
   to mark them as `&eacute;`
 * `Array ( [select-email] => Je souhaite rejoindre votre Ã©quipe )`
    it should 
   be équipe In CF7 configurator I’ve set `Je souhaite rejoindre votre &eacute;quipe`
    -  This reply was modified 8 years, 5 months ago by [synthview](https://wordpress.org/support/users/synthview/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9882988)
 * I’ve tried putting the new after or before the class and it crashes.
    It worked
   once (my previous post) but now it works no more 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9882965)
 * Well, with the classic hook it works now…
    I think I didn’t get the good naming
   of the hook into here
 *     ```
       [simplehidden dynamic-mail-to-filter "wpcf7-dynamic-recipient-example-filter"]
       ```
   
 * Thanks for your help!! It was very useful to check again things 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9882931)
 * my local server (Mamp) has php 5.5.3, does it matter?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9882923)
 * if I uncomment I see this
 * `Fatal error: Class 'wpcf7_dynamic_mail_to_examples' not found in /xx/yy/zz/themes/
   velocita/functions.php on line 163`
 * (163 is the line of new wpcf7_etcetc)
    the other example didn’t work neither 
   🙁
    -  This reply was modified 8 years, 5 months ago by [synthview](https://wordpress.org/support/users/synthview/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9882773)
 * in fact I have the feeling the hook doesn’t fire.If I set a print_r and a die
   inside, nothing outputs.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Recipient for Contact Form 7] mail sent to default WP user](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/mail-sent-to-default-wp-user/#post-9882703)
 * this (emails addresses cloaked for this forum. By now I’m just testing for first
   3 items of the select, not all)
 *     ```
       //not include css and js from ContactForm7
       add_filter( 'wpcf7_load_js', '__return_false' );
       add_filter( 'wpcf7_load_css', '__return_false' );
   
       //	new wpcf7_dynamic_mail_to_examples();
   
       	class wpcf7_dynamic_mail_to_examples {
   
       		// these are the email addresses to be used to for setting the recipient email address in cf7
       		private $email_address_1 = 'xxxxx.com';
       		private $email_address_2 = 'yyyyy.com';
       		private $email_address_3 = 'zzzzz.com';
   
       		public function __construct() {
       			add_filter('wpcf7-dynamic-mail-to-example-filter', array($this, 'filter'), 10, 2);
       		} // end public function __construct
   
       		public function filter($recipient, $args=array()) {
   
       			if (isset($args['select-email'])) {
       				if ($args['select-email'] == 'Je suis un citoyen') {
       					$recipient = $this->email_address_1;
       				} elseif ($args['select-email'] == 'Je suis un media') {
       					$recipient = $this->email_address_2;
       				} elseif ($args['select-email'] == 'Je suis un investisseur') {
       					$recipient = $this->email_address_3;
       				}
       			}
       			return $recipient;
       		} // end public function filter
   
       	} // end class wpcf7_dynamic_mail_to_examples
       ```
   
    -  This reply was modified 8 years, 5 months ago by [synthview](https://wordpress.org/support/users/synthview/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Additional settings / Dom elements](https://wordpress.org/support/topic/additional-settings-dom-elements/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579806)
 * Ok maybe I know! it’s because I’m sending the form in a classic way (no ajax).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Additional settings / Dom elements](https://wordpress.org/support/topic/additional-settings-dom-elements/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579785)
 * maybe it’s because I’ve set `define('WPCF7_LOAD_JS', false);`
 * I’ve added
    <?php if ( function_exists( ‘wpcf7_enqueue_scripts’ ) ) { wpcf7_enqueue_scripts();}
   wp_head(); ?>
 * but I see nothing printed in the html of the page. I expected to see a .js file
   imported, right?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Additional settings / Dom elements](https://wordpress.org/support/topic/additional-settings-dom-elements/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579701)
 * I’ve updated to last WP install and all the plugins but no change 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Additional settings / Dom elements](https://wordpress.org/support/topic/additional-settings-dom-elements/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579604)
 * tried on a local copy of the site with an `alert('a');` inside the eventlistener,
   but nothing happens. Maybe it’s because I’m not on the last WP version?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] tens of copies of the same message “locked out”](https://wordpress.org/support/topic/tens-of-copies-of-the-same-message-locked-out/)
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/tens-of-copies-of-the-same-message-locked-out/page/2/#post-7554119)
 * yes I had lowered down it.
    I’ve received only the 1st email with the temp ban.
   Your IP is NOT in the banned users > Ban hosts list 🙁

Viewing 15 replies - 1 through 15 (of 78 total)

1 [2](https://wordpress.org/support/users/synthview/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/synthview/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/synthview/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/synthview/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/synthview/replies/page/6/?output_format=md)
[→](https://wordpress.org/support/users/synthview/replies/page/2/?output_format=md)