
A Contact Form 7 choice can have two useful meanings: the label a visitor selected and the value used inside the notification. When pipes map a department name to an email address, the ordinary mail-tag can show the address where a colleague expected to see “Sales.” A raw mail-tag lets you include the visible choice as a separate piece of context.
This guide focuses on notification output and data interpretation. For the routing configuration itself, use our selectable recipient guide. Decide which representation each destination needs before changing a working form.
Understand the two sides of a pipe
In supported choice fields, a pipe divides an option into a visitor-facing part and a mail replacement. A conceptual option such as Sales|[email protected] presents Sales to the visitor. In the Mail template, the corresponding ordinary mail-tag resolves to the mapped address. The raw version retrieves the part before the pipe. CF7 documents this behavior for menus, radio buttons and checkboxes.
The word “raw” here does not mean HTML source, a complete HTTP request or an unvalidated database record. It identifies a particular mail-tag representation. Avoid carrying the same label into a CRM field called recipient_email, because that would mix human-readable context with an operational address.
Write a small, explicit example
In a staging copy of the form, add a required selection with three fixed departments. Keep field names consistent across the Form and Mail tabs:
[select* inquiry-team first_as_label "Choose a team" "Sales|[email protected]" "Support|[email protected]" "Partnerships|[email protected]"]
In the Mail tab, the To field can use [inquiry-team] for the configured destination. In the message body, include separate lines:
Selected team: [_raw_inquiry-team]
Configured destination: [inquiry-team]
The example addresses are placeholders. Replace them with approved fixed destinations in your own configuration. Do not allow a visitor to supply an arbitrary notification recipient through an unrestricted text field. Also keep the normal site-domain sender setup and Reply-To arrangement separate from this department choice.
Use each representation where it helps the reader
A shared inbox operator usually needs the selected department, the inquiry text and a way to reply. The internal address may help during diagnosis, but can be redundant in everyday messages. You can include the label in a subject such as “Website inquiry: [_raw_inquiry-team]” and keep the ordinary mapped value only in the To field.
An acknowledgement sent to the visitor generally needs the label rather than an internal routing address. Review Mail (2) setup before changing that message. A readable department label does not prove that a human has accepted the request, so avoid wording that promises ownership or response time before your team has actually assigned it.
Check the exact field name
The raw syntax includes the original field name after the prefix. For inquiry-team, use [_raw_inquiry-team]. Do not substitute the visible label, the form ID or the name of the WordPress page. If you rename the form-tag, update every dependent Mail and Mail (2) reference in the same reviewed change.
Compare the saved template with a generated notification in a controlled environment. If the output is blank, first check the name and whether a meaningful choice was actually submitted. If the ordinary and raw values look identical, inspect whether the option has a pipe at all. Refer to our form-tag and mail-tag mapping guide for the general naming rules.
Do not assume connectors inherit mail replacement
A webhook connector, storage plugin or custom PHP adapter may obtain values at a different processing stage. Adding a raw mail-tag to a notification does not change every integration payload. Inspect the connector’s documented field mapping and a synthetic request, then record which representation it sends.
For example, your lead record might need a department label for an operator and a stable internal department code for automation. Define those destination fields deliberately. Do not parse a rendered email just because it happens to contain the address today. Keep a small mapping contract that names the source field, destination field, accepted choices and behavior when an option changes.
Verify more than the default choice
- Submit each real department choice in staging and compare the selected label, resolved destination and notification body.
- Leave the prompt selected and confirm that the required choice prevents an incomplete submission.
- Check Mail (2) separately if enabled, including which representation reaches the visitor.
- Inspect any connector or saved record rather than inferring its contents from the email.
- Repeat after changing a label, adding a department or renaming the field.
For a multi-select or checkbox field, define how your downstream system should represent multiple answers before enabling that combination. A field suitable for a descriptive message is not automatically suitable as a recipient list. Keep routing rules narrow and review the supported recipient behavior for the exact configuration.
Keep reporting separate from routing evidence
A submission statistic answers a different question from “which mailbox received this inquiry?” Our free Svetlik Analytics for Contact Form 7 provides submission trends and statistics. Use those alongside a documented notification check, rather than treating a recorded submission as proof of inbox delivery or CRM creation.
Keep a dated configuration note containing the field name, option labels and intended destinations. After the checks pass, remove unnecessary diagnostic recipient details from ordinary messages. The useful outcome is an email that tells the team what the visitor chose while preserving the operational mapping that sends it to the right place.
