Contact Form Setup

CP Staff includes a built-in contact form system that lets website visitors send messages to staff members without exposing email addresses. Messages are delivered via email with the visitor’s address set as the reply-to.

Enabling Contact Forms

  1. Navigate to Staff > Settings > Advanced
  2. Check Staff contact modal
  3. Click Save Changes

When enabled, an email icon appears on staff cards for any staff member with an email address set. Clicking the icon opens a modal contact form.

Contact Form Settings

Configure these options in Staff > Settings > Advanced:

Setting Description Default
Staff contact modal Enable or disable the contact form feature Off
Display staff’s email address Show the recipient’s email in the form header Off
From Address The “From” address on outgoing emails Site admin email
From Name The “From” name on outgoing emails Site name

How the Form Works

  1. Visitor clicks the email icon on a staff card or single staff page
  2. A modal dialog opens with the contact form
  3. Visitor fills in their name, email, subject, and message
  4. On submission, the form validates all fields and runs security checks
  5. The email is sent to the staff member with the visitor’s email as the reply-to address
  6. A success message appears and the modal closes after 3 seconds

Form Fields

The contact form collects:

  • Full Name (required)
  • Email Address (required, validated)
  • Subject (required)
  • Message (required)

The staff member’s email address is obfuscated in the page source to deter casual harvesting, though it is not fully hidden from determined users with browser developer tools.

Email Delivery

Emails are sent through your WordPress installation’s wp_mail() function. If staff are not receiving contact form emails:

  1. Install a mail plugin like WP Mail SMTP to route emails through a reliable SMTP provider
  2. Check your hosting provider’s email sending limits
  3. Verify the From Address in settings matches an authorized sending domain

For spam protection options, see Security. For troubleshooting email issues, see Troubleshooting.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support
Scroll to Top