<label> Subject (required)
[select* dropdown your-recipient “Sales Questions|[email protected]”
“Shipping|[email protected]”
“Product Questions|[email protected]”
“Other|[email protected]”]</label>
The “mail” section has a different email address: [email protected]. All of the email, no matter the drop down selected, goes to [email protected].
Can anyone steer me in the correct direction?
Thanks in advance.
]]>However, I get an error message on the Mail tab saying “Invalid mailbox syntax is used.” I found that I can ignore that error and everything works OK. However, it’s confusing and the error message should probably not be displayed, right?
]]>You cannot put [your-recipient] into the “To” field without it throwing a syntax error.
I think it is only validating for emails and doesn’t like the square brackets.
Anyway I turned off the validation as a quick workaround to get things working again.
File: contact-form-7/includes/config-validator.php
Code Snippet:
$recipient = $components[‘recipient’];
$recipient = new WPCF7_MailTaggedText( $recipient,
array( ‘callback’ => $callback ) );
$recipient = $recipient->replace_tags();
$recipient = wpcf7_strip_newline( $recipient );
/* This is causing problems to Selectable Recipients
if ( ! $this->test_to_field_syntax( $recipient ) ) {
$this->add_error( sprintf( ‘%s.recipient’, $template ),
self::error_invalid_syntax );
}
*/
$additional_headers = $components[‘additional_headers’];
$additional_headers = new WPCF7_MailTaggedText( $additional_headers,
array( ‘callback’ => $callback ) );
$additional_headers = $additional_headers->replace_tags();
https://www.ads-software.com/plugins/contact-form-7/
]]>https://contactform7.com/selectable-recipient-with-pipes/
I should be able to allow the user to control who receives the message by a pre-defined select list, like this:
[select your-recipient “CEO|[email protected]”
“Sales|[email protected]”
“Support|[email protected]”]
I do not see the options in the html, which may not be a problem, since including the recipient in the html would open this form up to hijacking as a spam relay. However, even if the approach is to hide the email and match them against the stored emails, the messages do not get delivered as selected.
https://www.ads-software.com/plugins/contact-form-7/
]]>However, when the message is sent, since the email field is in the “To:” field, all recipients are able to see who’s getting the message. I would rather this NOT be the case.
What’s the best way to handle this (so that the recipient list is hidden from the recipients, but so the message gets through/isn’t marked as spam)?
– Do I leave the “To:” field blank and put a “Bcc:” field in the “Additional headers:” section? Or something else (do I have to have something in the “To:” field)?
– I already have “Reply-To: [your-email]” in the “Additional headers:” section, so do I do as in the example https://contactform7.com/adding-cc-bcc-and-other-mail-headers/ and not use any punctuation in between each?
Thanks for the guidance.
https://www.ads-software.com/plugins/contact-form-7/
]]>I know the information is being set properly, so why isn’t it sending to the address that should be set for the ‘To’ field?
https://www.ads-software.com/plugins/contact-form-7/
]]>In the Form I use:
[select your-recipient “CEO|[email protected]”
“Sales|[email protected]”
“Support|[email protected]”]
In the Mail part I put:
[your-recipient [email protected] | [email protected]|[email protected]”]
Is this correct for the mail redirection, can someone help me please.
Thank you
https://www.ads-software.com/plugins/contact-form-7/
]]>Unfortunately, it seems that you can’t search for topics in the forum, so I don’t know if this issue has already been posted and resolved.
I have followed the instructions on Contact Form 7 web site for having selectable recipients via dropdown menu field. This is the page: https://contactform7.com/selectable-recipient-with-pipes/
I’ve followed the instructions, however, when I try to send a message through the form, I get an error message.
I have created the dropdown menu as per instructions and of course, I have set the corresponding tag in the “To” field of the message template. Can’t think of anything that could be causing this error.
This is the page where the contact form is: https://pizzulino.com.ar/dev/casero5/contacto/
I’m using WordPress 3.5.1 in Spanish with RSW theme.
Thank you!
https://www.ads-software.com/extend/plugins/contact-form-7/
]]>