[Typo3] No HTML infomail in sr_email_subscribe
Armin Günther
armin.guenther at augusta.de
Sun Oct 16 23:44:39 CEST 2005
Hi list!
There seems to be a problem in the sr_email_subscribe plugin that
prevents HTML infomails even though you have set HTML as default in your
setup:
plugin.tx_sremailsubscribe_pi1{
create=1
create.defaultValues.module_sys_dmail_html = 1
}
In the default template tx_sremailsubscribe_pi1_tmpl.tmpl there is a
marker ###HIDDENFIELDS### in subpart ###TEMPLATE_INFOMAIL###:
<!-- ###TEMPLATE_INFOMAIL### begin-->
...
###HIDDENFIELDS###
...
<!-- ###TEMPLATE_INFOMAIL### end-->
Delete the ###HIDDENFIELDS### marker if you want use the default values
(e.g. module_sys_dmail_html = 1) from you setup.
Explanation:
Marker ###HIDDENFIELDS### may be replaced with hidden post variables
that prevents default values from being loaded. In my case
###HIDDENFIELDS### produced something like
<input type="hidden" name="FE[tt_address][zone]" value="">.
Suggestion:
The plugin should be modified in such a way that no HIDDENFIELDS are
produced where no user data are submitted (as is the case where an
infomail is triggered by a mail-address). A even better solution would
be to fetch the actual (html) settings of the user and sent plaintext
mail or html mail accordingly.
Armin
More information about the TYPO3-english
mailing list