mail sent to default WP user
-
Hello John,
I’m sorry bothering you mbut after some hours of testing I can’t figuring out how to make your plugin to work ??
I’d like the user to select something from a select menu (such as I’m a private person, I’m professional, I’m a journalist, etc) to get the message to be dispatched to a specific email address.Could you please tell me if you see an issue in my code please?
The fields I’ve set are:
<label> Votre nom (required) [text* your-name] </label> <label> Objet de votre message [select* select-email include_blank "Je suis un citoyen" "Je suis un media" "Je suis un investisseur" "Je souhaite rejoindre votre e?quipe " "je repre?sente une collectivite? locale"] </label> <label> Votre adresse email (required) [email* your-email] </label> <label> Votre message [textarea your-message] </label> [simplehidden dynamic-mail-to-filter "wpcf7-dynamic-mail-to-example-filter"] [simplehidden dynamic-mail-to-fields "select-email"] [submit "Send"]
The echo from my form post is:
Array ( [_wpcf7] => 44 [_wpcf7_version] => 4.9.2 [_wpcf7_locale] => fr_FR [_wpcf7_unit_tag] => wpcf7-f44-o1 [_wpcf7_container_post] => 0 [your-name] => aasdf [select-email] => Je suis un investisseur [your-email] => [email protected] [your-message] => bgsdbsgdfgvwtdgvrtdf [dynamic-mail-to-filter] => wpcf7-dynamic-mail-to-example-filter [dynamic-mail-to-fields] => select-email )
Is it correct?
I’ve copied as-it-is your public function, into my functions.php and just updated the
private $email_address_1 ='XXXXXX';
(I had to comment
new wpcf7_dynamic_mail_to_examples();
otherwise my WP crashed).I’ve of course installed both your plugins ??
- The topic ‘mail sent to default WP user’ is closed to new replies.