[TYPO3-english] Form of FCE mailform element not send; standard forms just ok [solved!]

Bert Hiddink hiddink at bendoo.com
Tue Dec 9 11:29:43 CET 2008


Hello,

I found out that the customized TS mailform was not sending mails
because of a problem with the "locationData". So the following snippet
works:

# FCE Mail FORMS
# Overriding recipient form CE mailform
# Securemail off in localconf.php!
tt_content.mailform.20.recipient >
tt_content.mailform.20.recipient = aa at bbb.com

# Creating form-object
applytest.form = FORM

# Copy settings form standard mail object
applytest.form < tt_content.mailform.20
# Start customizing
applytest.form {

   ### Shut off auto generation of the hidden field 'locationData',
   ### which seems to be broken.
   locationData = 0
   ### generate an acceptable hidden field 'locationData' manually
   hiddenFields.locationData = TEXT
   hiddenFields.locationData {
   value = {page:uid}
      insertData = 1
   }
   stdWrap.innerWrap.cObject = COA
   dataArray {

     5.type= subject=hidden
     5.value= appform

     7.type= html_enabled=hidden
     7.value=  1

     8.label= Nombre:
     8.type= from_name=input
     8.value= Your name
     8.required=1

     9.label= Correo:
     9.type= from_email=input
     9.value=  hhh at ccc.com
     9.required=1

     10.label = Comentario:
     10.type= Comment=textarea

     40.type = formtype_mail=submit
     40.value = Enviar
   }
}
# Copy customized object to FCE from TV
lib.applicationForm < applytest.form

See also:
<http://lists.netfielders.de/pipermail/typo3-dev/2005-January/007697.html>

Regards,

-brt

Bert Hiddink wrote:
> Hello!
> 
> I created a FCE mailform element, so that I can get the form prefilled 
> with some tt_news-data.
> 
> Everything looks fine but...the form does not get send. Standardforms 
> are just send fine.
> 
> I disabled the [secureFormmail] option and created this snippet. The 
> recipient gets encrypted as a hidden field into the form. Please let me 
> know if you have any idea where things are going wrong.
> 
> Many thanks in advance...
> 
> Bert
> 
> #FCE  Mail FORMS
> tt_content.mailform.20.recipient >
> tt_content.mailform.20.recipient = bert (dot) bendoo (dot) com
> 
> apply.form = FORM
> apply.form < tt_content.mailform.20
> apply.form {
>   data  >
>   locationData = 0
>   stdWrap.innerWrap.cObject {
>     10 = TEXT
>     10.cObject = COA
>     10.cObject {
>       10=CONTENT
>       10{
>         table=tt_news
>         select.pidInList = 113
>         select.andWhere.cObject = COA
>         select.andWhere.cObject {
>          10 = TEXT
>          10.data = GPvar:tx_ttnews|tt_news
>          10.wrap = uid = |
>         }
>         renderObj=COA
>         #read the title
>         renderObj.10=TEXT
>         renderObj.10{
>           field=title
>         }
>       }
>     }
>     10.wrap = <h2>Apply for the vacancy "|"</h2>
>     10.value.insertData=1
>   }
> 
>   stdWrap.innerWrap.cObject = COA
>   dataArray {
>     5.label = Name:
>     5.type= Name=input
>     5.required = 0
> 
>     10.label = Name:
>     10.type= Name=input
>     10.required = 0
> 
> 
>     15.label = Your CV
>     15.type= cv=file
>     15.required = 0
> 
>     20.label = Other document:
>     20.type= otherdoc=file
> 
> 
>     25.label = Comments:
>     25.type= comments=input
> 
>     30.type = submit=submit
>     30.value = Send application
>   }
> }
> #Send it to the FCE
> lib.applicationForm < apply.form
> 
> 


-- 


Vriendelijke groeten,
Bert Hiddink

---------------------
BENDOO e-work solutions
Harterinkdijk 8
7065 AR SINDEREN
The Netherlands
Tel. 0315 244525
http://www.bendoo.nl
hiddink at bendoo.nl
---------------------


More information about the TYPO3-english mailing list