Learn to set custom email actions in Breakdance’s contact form, ensuring authors and visitors receive clear communication and confirmations post-submission.
In this lesson, we are going to add custom email actions to our contact form. When the contact form is submitted it will trigger two email.
Breakdance has over a dozen available actions for after a form submission. These include integrations with popular email marketing and communication platforms that we will look at in later lessons.
We are only going to use the email action for our contact form.
Back in the form builder I’m scrolling past the Form options we’ve already set up and going down to the ACTIONS tab. By default Breakdance has configured two actions.
If we look at the Breakdance menu item back on the WordPress admin dashboard you can see there’s an option to view all form submissions to the website.
I don’t recommend storing form submissions on your website. It’s extra weight to the site, more admin and your email client with configured rules will do a better job of storing and processing all your messages anyway.
Hi Dirk,
You got a message from {name} via the contact form on the Dirk Volcano website.
The message is as follows.
{message}
Best Regards
Website Admin
That’s the admin email taken care of to make sure Dirk, or one of his team, get the message as quickly as possible. Now I want to add a thank you email to the visitor. This email will add another layer of confirmation to the visitor, on top of the thank you page, that their message has been received and when to expect a reply.
Hi {name},
Thank you for contacting me. I or one of the team will be in touch before the end of the next working day. Thanks again for getting in touch.
Best regards
Dirk
That’s all the form set up completed. We can’t test from inside the Global Block builder but we will test the form in the next lesson. For now I’ll click save on the Global Block and click X to exit to WordPress.
In this lesson we added an action to our new global form to send TWO emails after submission. The first email is to the website’s owner, Dirk Volcano, to let him know a new message has been received, who it is from and what they have to say. We also configured that first email so Dirk only has to hit the reply button to get in touch with the sender.
We also added a second email. This one goes to the person submitting the form to acknowledge their message and to set expectations about what happens next.
In the next lesson we will build our Contact page, add in our new global block with the form inside and test it to make sure it all works.