powermailcaptcha 

Extension key

powermailcaptcha

Package name

traw/powermailcaptcha

Version

2.2.1

Language

en

Author

Thomas Rawiel

License

This document is published under the Creative Commons BY 4.0 license.

Rendered

Fri, 07 Nov 2025 09:55:16 +0000


Captcha extension for EXT:powermail


Table of Contents:

Installation 

Install this extension via composer:

composer require traw/powermailcaptcha
Copied!

or add it to your extension's composer.json file:

"require": {
    "typo3/cms-core": "^12 || ^13",
    "traw/powermailcaptcha": "^2.0"
}
Copied!

Configuration 

  • Include powermailcaptcha Typoscript.
  • Setup the Captcha type of your choice
  • Add a field of the type Powermailcaptcha to your powermail form

Typoscript Reference 

This is an overview of the available Typoscript constants. They are also available in the Constant Manager.

Enable / disable 

plugin.tx_powermailcaptcha.enable

plugin.tx_powermailcaptcha.enable
Type
bool
Default
true

New in version 1.3.0

In case you wish to disable the captcha temporarily, just add the following line to your typoscript constants: plugin.tx_powermailcaptcha.enable = 0

You can also find this option in the Constant Editor.

Sitelanguage 

plugin.tx_powermailcaptcha.useSiteLanguage

plugin.tx_powermailcaptcha.useSiteLanguage
Type
bool
Default
true

New in version 1.1.0

The current language is added to the captcha via language parameter which is taken from your Site Configuration.

To disable this behavior, add the following to your Typoscript Constants:

plugin.tx_powermailcaptcha.useSiteLanguage = 0

Captcha API Keys 

plugin.tx_powermailcaptcha.captchaMethod

plugin.tx_powermailcaptcha.captchaMethod
Type
string
Required

true

Available values:

  • Google Recaptcha recaptcha
  • Friendly Captcha friendlycaptcha
  • hCaptcha hcaptcha
  • Cloudflare Turnstile cloudflare
  • Prosopo Procaptcha procaptcha

See Supported Captcha Types

plugin.tx_powermailcaptcha.sitekey

plugin.tx_powermailcaptcha.sitekey
Type
string
Required

true

Captcha Sitekey/ Application ID

plugin.tx_powermailcaptcha.secretkey

plugin.tx_powermailcaptcha.secretkey
Type
string
Required

true

Captcha Secretkey / API key

Hints 

Required: Make sure powermail spamshield is enabled:

plugin.tx_powermail.settings.setup.spamshield._enable = 1
Copied!

---

Optional: Keep up to date if powermail recognize spam (TypoScript setup):

# Get an email if spam was recognized
plugin.tx_powermail.settings.setup.spamshield.email = spamreceiver@yourdomain.de

# Write to a logfile when spam was recognized
plugin.tx_powermail.settings.setup.spamshield.logfileLocation = typo3temp/logs/powermailSpam.log
Copied!

---

Optional: Remove the default captcha field by adding the following to your Page TSConfig:

TCEFORM.tx_powermail_domain_model_field.type.removeItems := addToList(captcha)
Copied!

---

New in version 1.1.0

Required: If you override powermail's partial Partial/Form/Page.html in your own extension, make sure to add the variable languageIso to the f:render of the Fields:

<f:render partial="Form/Field/{vh:String.Upper(string:field.type)}" arguments="{field:field, languageIso:languageIso}"/>
Copied!

Prosopo Procaptcha 

New in version 1.7.0

New in version 2.1.0

Supported languages 

Depending on your website language, not all languages are supported for every Captcha-Method.

Read

for further information on supported language codes.

PSR-14 events 

New in version 1.8.0

New in version 2.2.0

The PSR-14 event BeforeVerifyRequestEvent has been added in order to manipulate the additional request options that are sent to the Site-Verify-URL

Implementing an event listener in your extension

Older versions 

For TYPO3 11 and older powermail versions, please install traw/powermailcaptcha ^1.0

Requirements:

"php": "^7.4 || ^8.0",
"in2code/powermail": "^9.0 ||  ^10.5 || ^11.0 || ^12.0"
Copied!

Sitemap