Form Settings Linked to Publication Target

While developing my site and for ongoing maintenance , I am using Servbay to test. This includes defining the Form Settings to use the Servbay Mailpit service so that I can view the sent form email in Mailpit.

When publishing my site to the production remote server, I have to change the Form Settings to reflect the mail service on my production server.

At the moment, I am achieving this by having a duplicate page with the production email settings. I disable for publication the page for whichever mail service I won’t be using in the target destination.

This isn’t ideal and potentially error prone. It seems to me that it could be automated, by having multiple email settings in the form component that could be linked to the publication target or some sort of similar solution?

That’s a nice idea, and certainly something for the “not-essential, but nice-to-have” feature list!

1 Like