This page is still a beta!

1.11. FAQ

I need help/support with this plugin!

Use the TYPO3 forum http://www.typo3.net or http://www.typo3forum.net for help! The author will check both forums from time to time and give a little bit of free support. Payed support could be done on http://www.in2code.de

TYPO3 send no mails but there is a db entry – what could I do?

  1. Check if the powermail_all marker is in your RTE content (###POWERMAIL_ALL###)
  2. Depending on your hoster it could help if you set forceReturnPath in the Install Tool to 0
    forceReturnPath
  3. Check if you have set the right cookie domain in the install tool
  4. Maybe it helps if you turn on the debug mode of powermail in the constants

How can I prefill some fields?

  1. Prefill fields with values from backend or

  2. Prefill fields via typoscript (see example above) or

  3. Prefill fields with feuser values (set in backend)

  4. Prefill if some fields are already filled and than the user submits form and leaves this page but comes back to the form page later

  5. Prefilling from outside like index.php?id=1&tx_powermail_pi1[uid55] (if you want to prefill with a pre form)

  6. Prefill fields with hook use (PM_FieldWrapMarkerHook1)

How can I overwrite the locallang translations / How can I add a new locallang marker

How can I overwrite the locallang translations / How can I add a new locallang marker

You can overwrite the locallang via typoscript or you can change the locallang.xml in the ext folder.

Details - see “HTML Templates and markers use” in manual above

How can I use validation of fields per Javascript?

This check is activated for default for textfields

You can turn of the validation via TS constants

JavaScript check don't work - why?

Check if the 4 js files are correctly implemented in the HTML HEAD area:

  1. <script src="/typo3conf/ext/powermail/js/mandatoryjs/lib/prototype.js" type="text/javascript"></script>

  2. <script src="/typo3conf/ext/powermail/js/mandatoryjs/src/effects.js" type="text/javascript"></script>

  3. <script src="/typo3conf/ext/powermail/js/mandatoryjs/fabtabulous.js" type="text/javascript"></script>

  4. <script src="validation/fachgebiete/typo3-extensions/powermail.html" type="text/javascript"></script>

The last file is a little bit tricky – It is the current page with type=3131. If you copy this relative path to your browser, this should show you a dynamic JavaScript file!

If you want to check of mandatory fields, check if “required” is in the input class.If you want to check of email fields, check if “validate-email” is in the input class.Of course you can mix this.See standard form for all needed classes.

NOTE: If you use mootools within your homepage, there is a conflict with prototype. You can field validation via mootools in the constants

How can a style my form?

All can be done with css. Note: If you only need one page (no multiple page), you can anyway add more than only one fieldset. So you can float fieldsets horizontal (e.g.).

Note1: See “CSS corner” for css examples below

Note2: We offer a sample css in the extension folder: ext/powermail/css/sampleCSS.css

Note3: Have a look into an existing powermail example and copy the css of this homepage (examples are listed above)

HTML Validation vailed

HTML validation failed on such form action:

index.php?id=1&tx_powermail_pi1[mailId]=1&cHash=1234567
  1. Try to use RealUrl to remove cHash

  2. If you have chosen XHTML strict in your TYPO3 backend, the & will be written as &amp;

How can I choose my own html code instead of the automatic html generation

Sometimes it could be useful to use an own html code instead of the automatic html code. You can simply generate some fields and copy the html source between the form tags in the formwrap.html template or you can use markers like ###UID23### to get the HTML code of this field – thats all.

I want a select box in frontend where the user can choose the receiver of the form

Main explanation:

  1. Add new fe_users in backend with email (e.g. UID1 info@test.com and UID2 with support@test.com)

  2. Create a new select field in powermail (value e.g. Info | 1 \n Support | 2) (select like ###UID42#)

  3. Use db query for recipients in TYPO3 backend (e.g. SELECT email FROM fe_users WHERE uid = ###UID42###)

Example TS setup:

plugin.tx_powermail_pi1.email.recipient_mail {
email_query = TEXT
email_query.value = SELECT email FROM fe_users WHERE uid = ###UID42###
}

Example Select Field:

Different Query Examples to select receiver in frontend:

Query for selecting one fe user (e.g.: UID42 is fe_user uid):

SELECT email FROM fe_users WHERE uid = ###UID42### AND hidden = 0 AND deleted = 0

Query for selecting a fe usergroup (e.g.: UID43 is fe_user group uid):

SELECT email FROM fe_users WHERE find_in_set(###UID43###,usergroup) > 0 AND hidden = 0 AND deleted = 0

Query for sending form to a static fe usergroup (e.g.: usergroup with uid 44)

SELECT email FROM fe_users WHERE find_in_set(44,usergroup) > 0 AND hidden = 0 AND deleted = 0

I will check some fields (with php) if the value is an email or an URL

plugin.tx_powermail_pi1 {
validate.uid41.auto = email
validate.uid41.errormsg = Please check your email, there is an error!
validate.uid56.auto = url
validate.uid56.errormsg = Please check your url, there is an error!

}

Details or how to use own regulare expression see above!

I want to use captcha but no captcha field is shown

Maybe you have installed and loaded the extension captcha and in constants is set sr_freecap (standard) instead of captcha.

Onetime filling solve all my problems

It's possible to enable one time filling via constants. Check if a value already exists (maybe an email address) or check if IP address already exists. See constants editor...

Countryselector dropdown without value (Empty field cn_short_en ...)

If you use static_info_tables or (e.g.) static_info_tables_de and you forgot to import the data, the value fields are empty in the database. Powermail shows an errormessage in the dropwdown like “Empty field cn_short_en (uid 33)”

Dynamic text on answer page

  1. “Sehr geehrter Herr” if male or “Sehr geehrte Frau” if female

  2. http://www.typo3.net/forum/beitraege/formulare/78897/beitrag/

Include google searchword in mail

  1. If someone comes from google to your page – maybe you want to add the searchterm to your mail

  2. http://www.typo3.net/forum/beitraege/formulare/78365/beitrag/

Dynamic date in a dropdown field

  1. Another userFunc example, which shows the next days in a powermail select box

  2. http://www.typo3.net/forum/beitraege/formulare/78670/beitrag/