This page is still a beta!

1.6. Constants for powermail

You can change your constants with the constant editor

Property:

Description:

Default

Data type:

template.formWrap

Template File formwrap: HTML-template file for formwrap

EXT:powermail/templates/tmpl_formwrap.html

file

template.fieldWrap

Template File fieldwrap: HTML-template file for fieldwraps

EXT:powermail/templates/tmpl_fieldwrap.html

file

template.thxMessage

Template File thx-message: HTML-template file for thx message after submit

EXT:powermail/templates/tmpl_thx.html

file

template.emails

Template File emails: HTML-template file for emails messages (sender and receiver)

EXT:powermail/templates/tmpl_emails.html

file

template.confirmation

Template File confirmation: HTML-template file to change html code of the confirmation page

EXT:powermail/templates/tmpl_confirmation.html

file

template.all

Template File ALL marker: HTML-template file if you want to use the marker ###POWERMAIL_ALL### - here you can set the HTML code for each line

EXT:powermail/templates/tmpl_all.html

file

template.mandatory

Template File mandatory: HTML-template file for mandatory page (if any mandatory field was not filled)

EXT:powermail/templates/tmpl_mandatory.html

file

css.MultipleJS

Multiple JS CSS: CSS file for multiple page via JS (see EXT:powermail/css/multipleJS.css for an example)

EXT:powermail/css/multipleJS.css

file

template.multipleJS

Template File multiple: HTML-template file for multiple pages (see EXT:powermail/templates/tmpl_multiplejs.html for an example)

EXT:powermail/templates/tmpl_multiplejs.html

file

allow.email2receiver

Email to receiver active: You can disable emails to receiver

1

boolean

allow.email2sender

Email to sender active: You can disable confirmation emails to sender

1

boolean

allow.dblog

Log every mail in db: Disable logging, if you want only to get mails

1

boolean

PID.dblog

PID where to save logfiles: Enter a Page ID where the form values should be saved to the db (empty: same PID as form PID)

boolean

emailformat.recipient_mail

Receivermail HTML or Plain: If you use this value, emails to the receiver will be send in html or plaintext or both formats (both, html or plain)

both

text

emailformat.sender_mail

Sendermail HTML or Plain: If you use this value, emails to the sender will be send in html or plaintext or both formats (both, html or plain)

both

text

enable.unique

Onetime filling: Checks if a field has already this entry (maybe email address), IP check is also possible if ip addresses will be logged) - (e.G. uid11,ip checks for unique IP and unique entry in field uid11)

boolean

email.noreply

Standard sender address: This email address is important, if no sender field was chosen in the backend, so this email address will be used for the sender (###DOMAIN### will be replaced with current domain like test.com)

noreply@###DOMAIN###

text

email.checkMX

Check MX record of sender mail: This is a small test, if senders email address exists (MX record check of domain)

1

boolean

email.overwritesender

E-Mail sender address: If you add an email address in this field, this email address will be used for the user mail as senderemail and returning email address. Normally the main receiver address is used as sender for the returning mail, but you can overwrite this if you want (e.G. mail@mail.com) Note - if you don't use a correct mail address, this field will be ignored!

text

hiddenfields.show

Don't show hiddenfield values: Show or hide values of hiddenfields on recipient mail, confirmation mail to sender, thx message page, confirmation message page, mandatory page (default 1,0,0,0,1)

1,0,0,0,1

text

markerALL.hideLabel

Hide label if empty value: This option hides labels if its value is empty in marker ###POWERMAIL_ALL###

0

boolean

markerALL.notIn

Exclude fields from marker ALL: Exclude some fields from marker ###POWERMAIL_ALL### (e.g.: ###UID14###,###UID22### or UID14,UID22)

text

form.method

Form method: use post or get as post format (details see on selfhtml.org)

post

text

format.datetime

Frontend datetime format if datetime field is in use (only needed if you use the extension date2cal)

%H:%M %d-%m-%Y

text

format.date

Frontend date format if date field is in use (only needed if you use the extension date2cal)

%d-%m-%Y

text

label.allowTags

Allowed tags in labels: Allow some tags for label fields

<p><br><b><strong><a>

text

html.removeXSS

RemoveXSS for html fields: (de)activate security function to disable Cross Site Scripting with the html field (removeXSS on or off)

1

boolean

countryselect.charset

Charset for countryselector: You can use the php functions utf8_encode or utf8_decode to change the countryselector output

options[,utf8_encode,utf8_decode]

description.wrap

Description wrap: Define the wrap for the field descriptio to enable a css tooltip or simply a text, etc...

<a href="/extension-manuals/powermail/1.4.15/view/1/6/#"><img src="/typo3conf/ext/powermail/img/icon_info.gif" alt="Description" class="icon icon_info" style="border: none;" /><dfn>|</dfn></a>

text

mandatory.messages

Mandatory message above form: You can switch between mandatory messages above form or show this messages on an extra page with backtoform button (default)

0

boolean

mandatory.symbol

Add symbol for mandatory fields: If any field is a mandatory field, add this at the end of the label

*

text

mandatory.wrap

Wrap mandatory symbol: You can wrap the mandatory symbol with any html code

<span class="powermail_mandatory">|</span>

text

captcha.use

Use captcha extension: If you have installed sr_freecap and captcha, you can select which extension should be used (sr_freecap, captcha, recaptcha, wt_calculating_captcha)

sr_freecap

option

pagebrowser.wrap

Wrap pagebrowser: If you use multiple pages (PHP), you can show the current page like 1 of 3

<p class="powermail_pagebrowser">|</p>

wrap

upload.folder

Folder for uploaded files: If you are using min. one upload field in frontend, you can change the folder where the uploaded file is safed

uploads/tx_powermail/files/

text

upload.file_extensions

Allow files for upload: If you are using min. one upload field in frontend, you can set the allowed extension of this files

jpg,gif,png,tif,txt,doc,xls,sxw,html,swf

text

upload.mimecheck

Mime check for upload: Checks if uploaded file is realy the file which it should be (mime check)

1

boolean

upload.filesize

Allow filesize for upload: If you are using min. one upload field in frontend, you can set the allowed filesize of the files (in kB)

1000

int

upload.attachment

Upload and attach: If checked, all files will be sent as an attachment to the receiver (if disabled, files will only stored on server)

1

boolean

clear.session

Clear Session: Check if session should be cleared after submit (emails sent)

0

boolean

libraryToUse

Javascript Library: Set to either "mootools" or "prototype" to choose a javascript library for frontend validation (choose mootools, if you already use an extension which use mootools on the same page)

prototype

options[mootools,prototype]

js.mandatorydivclass

Mandatory JS DIV class: Enter your own css class for the mandatory javascript div layer (div layer which is shown, if a field was not filled, etc...)

powermail_mandatory_js

text

js.onfocus

OnFocus JavaScript: (De)activate onfocus javascript in fields - removes standard value of (e.g. text-) fields onclick, so the user can click and begin to write

1

boolean

field.checkboxJS

Hiddenfields for checkboxes: (De)activate the hiddenfields for checkboxes. If only checkboxes are in use, there is a problem to enable a checkbox, submit, go back and deaktivate checkbox and submit again - the value ist still set. To fix this, you can use a JavaScript with hiddenfields (set by default).

1

boolean

rte.parse

Use rteCSStext function: Text from rich text editor will be parsed automaticly for emails and thx message (every line gets an p tag, etc...). Disabling could be useful if you want to use only plaintext mails.

1

boolean

label.parse

Use labelparse function: Labels could be used with TYPO3 LINK syntax (e.g. 1)

1

boolean

input.style

Style instead of size: Using a local stylesheet in the input fields and in all textareas instead of size or rows and cols - the value in the flexform should be in pixel (e.g. 1)

0

boolean

powermail.charset

Charset for powermail: You can use the php functions utf8_encode or utf8_decode to change the whole powermail output

options[,utf8_encode,utf8_decode]

barrier-free.tabindex

Manual sorting of tabindex: Powermail adds tabindex to the fields (automaticly via sorting). If you want to use another order, you can change the order with this settings (e.g. uid5,uid4,uid3_0,uid3_1 or 5,4,6,4_0,4_1,3)

text

barrier-free.accesskey

Adding accesskeys: You can add some accesskeys to the fields if you want (e.g. uid1:f,uid3:g or 1:a,2:b,3_1:c)

text

geoip.file

Add geoip file: If you want to use geoip, you can enter the relative path to the .dat file for geo info (e.g. fileadmin/geoinfo.dat)

text

geoip.addValuesToMarkerALL

Add geo info to marker ALL: The most people don't want to use single markers, they just use ###POWERMAIL_ALL###, if you want to add some geoinfo, you can add those to the all marker (e.g. countryName, city) (available keys - ip, countryCode, countryName, region, city, zip, lng, lat, dmaCode, areaCode)

text

debug.output

Activate debug output: Possibility to print a debug output over the html. All displays session and email array, Session prints only session array, Email prints only email array (empty or all or session or email)

options[,all,session,email,db]

Note: Prefix for all powermail constants: plugin.powermail.