Hello Juergen,
I test your script in localhost server and worked fine. But when I move site to the live server I got this message:
Fatal Error: Uncaught Error: Class 'processwire\Form' not found in site/templates/contact.php:63
#0 wire/core/TemplateFile.php (327): require()
#1 wire/core/Wire.php (414): TemplateFile->___render()
#2 wire/core/WireHooks.php (951): Wire->_callMethod('___render', Array)
#3 wire/core/Wire.php (485): WireHooks->runHooks(Object(TemplateFile), 'render', Array)
#4 wire/modules/PageRender.module (554): Wire->__call('render', Array)
#5 wire/core/Wire.php (417): PageRender->___renderPage(Object(HookEvent))
#6 /var/www/vhosts/san (line 63 of site/templates/contact.php)
I have used the latest version of your module. I am attaching you the form template file to check. The server's PHP version is 7.4.29
Do you have any idea what is wrong?
contact.php