This post explains how to add custom recipients to any USP Pro Contact Form.
Contact Form Recipients
Before seeing how to add custom recipients, let’s look at how to specify default/global recipients with USP Pro:
- Admin Email To — this setting specifies the admin’s email address, the primary recipient of all contact-form email
- CC Emails — this setting specifies any additional addresses to which all contact-form email should be sent (via BCC)
These global settings should be sufficient for most setups, but if you need to customize recipients on a per-form basis, you can use the “Custom Recipients” feature, which is located under the Admin tab:
- Admin settings ▸ Custom Recipients ▸ “Custom Recipient 1” thru “Custom Recipient 5”
These five settings enable you to add custom recipients to any USP Contact Form. Read on to learn how..
Add Custom Recipients
To specify a custom email address (or multiple addresses) for any contact form, follow these steps:
- Enter any custom email addresses to the settings, “Custom Recipient 1” thru “Custom Recipient 5”
- Add
<input name="usp-contact-ids" value="1,3" type="hidden">
to your contact form, where1
and3
refer to the fields specified in Step 1
That’s all there is to it. When the hidden input field is included in a contact form, the email will be sent to the specified custom recipient(s).
Example
To better understand how this works, let’s look at an example. Let’s say that we have three email addresses that should receive all messages sent from our “Say Hello” contact form. We would add the email addresses to the first three “Custom Address” settings, like so:
- Custom Recipient 1 —
john@example.com
- Custom Recipient 2 —
jane@example.com
- Custom Recipient 3 —
jerry@example.com
After saving the changes, we then visit our “Say Hello” contact form via the USP Forms screen. There we include the following snippet anywhere in the form:
<input name="usp-contact-ids" value="1,2,3" type="hidden">
Save changes and we’re done. With this hidden field included in the form, USP Pro will know that the custom recipients #1, #2, and #3 should receive a copy of any messages sent via the “Say Hello” contact form.