Last updated on July 18, 2025 by Njones35

How to Send Emails to Dynamic Recipients from a WordPress Contact Form

Do you need to route messages to different departments? Wish you could conditionally set dynamic recipients based on choices in your form? Formidable Forms does all this and more!

how to send emails to dynamic recipients in WordPress

Need a contact form that sends emails to dynamic recipients?

Every contact form plugin that I've ever used sends emails. Nearly all allow you to define CC or BCC recipients as well as your TO address. Formidable Forms does more! Built-in features allow you to dynamically control where messages are routed depending on each individual form entry.

This control of dynamic recipients makes Formidable Forms special

Today I'll examine three main aspects of this feature, and their real world applications.

  1. Send different messages to each recipient using conditional logic.
  2. Route the same email to a list of dynamic recipients, using the Separate values approach.
  3. Send the same email to all recipients using email addresses that were entered in another form with the Dynamic field approach.

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Send a different message to each recipient with Conditional Logic

Suppose you have three departments in your company, and a form on your website for people to leave an inquiry. You want to send each department a notification about the inquiry only if it is applicable to them.

Additionally, each message can be individually customized, so each department only receives the details applicable to them, and some information can be excluded for privacy reasons if required.

  1. In your form, add a field for users to choose the Department they wish to contact. For this example, I'm going to add the options Human resources, Billing and Housekeeping in a Dropdown.
  2. Next, in your form go to Settings โ†’ Form Actions. Then click the Email Notification icon to add new notifications - one for each department.
    Email Notification conditional logic
  3. Enter the recipient email address in the To box. Then enter your message in the Message box. Repeat this for each department, customizing each message if you wish.
  4. In each of your email actions, click "Use Conditional Logic". Define the conditional logic so that each email action is only triggered when the matching selection is made by a user in the form. In this example, the email is triggered only when the 'Department' selection is equal to 'Human Resources'. Repeat this for each of your email actions.
    Email Routing dynamic recipients conditional logic
  5. Now, each department will get an email notification only when the submitted inquiry is relevant to their department. Also, when configured, the email content can be unique for each department.

Use Separate Values to route email messages

To send the same email to everyone, but have the recipients change based on a field in your form, you should use Separate Values.

Let's take the same scenario with a company that has three departments. You want to send human resources an email only if it is applicable to them; the same is true for your billing and housekeeping departments. Since the email message will be identical no matter the chosen department, this is simpler to setup. You only need to set up one email action with dynamic recipients.

  1. Email Routing SepterateAs described in the first example, add a dropdown or radio field to your form. Check the option to "Use separate values" in the field options.
  2. Add the department for the displayed value and the email address for the saved value. When your users fill out the form, they will select the department related to their inquiry.
    Email Routing Saved Value
  3. In your Form actions, add a new notification and click on the To box. Then click on your dropdown or radio button field in the 'Customization' sidebar to add this field to the To box. Next, add show="value" to the field ID in your To box. Now, selecting "Human Resources" in the department dropdown routes the email only to [email protected].
    Email Routing To Saved Value

Use Dynamic Fields to set email recipients

Use this method to send the same email notification to all recipients, and have the recipient change based on a field in your form.

A big advantage of this method is that email addresses are hidden. Even when inspecting the code on the page, there is no way to see them. Email addresses dynamically populate using entries from another form.

Again we'll base this example on the same company with three departments. For this method, we require two forms - the Contact Form as usual, and also a Data Form which will hold the list of departments and corresponding email addresses.

Email Routing Dynamic Field
  1. Create a new form titled "Departments" - this is the Data Form. Add two fields: A Single Line Text field for the Department Name, and an Email Address field.
  2. Add an entry for each option you want your users to select from. For example, 'Human Resources' in the text field and '[email protected]' in the email fieldEmail Routing Custom
  3. Next, go to your inquiry form and add a 'Dynamic Field'. In the "Import Options From" box select "Entries from a form field", choose your Data Form, and select your "Department Name" field. You can choose to display as Dropdown, Radio buttons, or Checkboxes.
  4. In your Form Actions, add a new email notification. Select the To box, then click on the "Department Emails" field in the Customization sidebar to add this field to the list of email recipients. Now selecting human resources as the department routes the email notification to the HR inbox.

Read more: Why you should replace HTML email links with email contact forms

Next up: Send emails to multiple addresses

This is just the start of what you can do with Formidable Forms.

You can also send emails to multiple addresses in WordPress using Formidable Forms. This is great for registration forms, booking forms, and so much more! So don't wait any longer, get started with Formidable now!

Did you know that Formidable Forms also has amazing Conditional Redirect features? Combine the two and make your contact forms work harder!


Try Formidable Forms risk-free with our 14-day money-back guarantee!



This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms