I have same problem… until 07.12.2020 the form works fine, nothing change, but now all my contact forms shows an error message: “Sending is not possible, try later again”
This code in a template runs in the global context, but i include this code in a widget, that will run in a function context. Do you know how declare global variables as global?