This tutorial will show you how to modify the email summary settings programmatically, allowing you to send summaries to a custom email address instead of the default admin email or hardcoded email address.
This is really useful if you are using an ACF options page and store the client’s email address in a field.
What This Code Does
The code snippet we’ll be exploring today allows you to:
- Retrieve a custom email address stored in an ACF options page.
- Override the default Fluent Forms email summary recipient settings.
- Send email summaries to your specified custom email address.
This is particularly useful if you want to separate your form summaries from your general admin emails, or if you need to send summaries to a specific team member or department.
The Code Snippet
Here’s the code that makes this customisation possible: