.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt =========================================== EXT: Templated output of th\_mailform\_plus =========================================== :Author: Kasper Skårhøj :Created: 2002-11-01T00:32:00 :Changed by: Jan Bednařík :Changed: 2006-09-22T10:47:05 :Email: info@bednarik.org .. _EXT-Templated-output-of-th-mailform-plus: EXT: Templated output of th\_mailform\_plus =========================================== Extension Key: **jb\_thmailformplus\_output** Copyright 2000-2002, , This document is published under the Open Content License available from http://www.opencontent.org/opl.shtml The content of this document is related to TYPO3 \- a GNU/GPL CMS/Framework available from www.typo3.com .. _Table-of-Contents: Table of Contents ----------------- **EXT: Templated output of th\_mailform\_plus 1** **Introduction 1** What does it do? 1 Users manual 1 **Adminstration 1** Reference 1 PHPMailer (see phpMailer documentation for more) 2 **Tutorial 2** **Known problems 3** **To-Do list 3** .. _Introduction: Introduction ------------ .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ \- Allows you to save form data to any kind of file and e-mail this file. This extension depends on th\_mailformplusextension, which provides the frontend. Basically this extesnion just defines saveUserFunc of th\_mailformplusext. .. _Users-manual: Users manual ^^^^^^^^^^^^ Install this extension and add a static template to your site template. |img-1| .. _Adminstration: Adminstration ------------- \- This ext. doesn't have its own TS. It just adds some TS to plugin.tx\_thmailformplus\_pi1.saveUserFunc. .. _Reference: Reference ^^^^^^^^^ .. ### BEGIN~OF~TABLE ### .. _template: template """""""" .. container:: table-row Property template Data type fileResource Description Path to an output template Default EXT:jb\_thmailformplus\_output/output\_template.tmpl .. _iconv-from: iconv.from """""""""" .. container:: table-row Property iconv.from iconv.to Data type string Description Here you can define charset conversion :: iconv.from = UTF-8 iconv.to = CP1250 Default .. _filename: filename """""""" .. container:: table-row Property filename Data type string Description The output has to be saved to a file. Here you can specify the filename. If the string contains #uniqueid# it's replaced by a string from PHP uniqueid() function. After that the string is passed to the strftime function. Default order-%d-%m-%Y(#uniqueid#).csv .. _savedir: savedir """"""" .. container:: table-row Property savedir Data type string Description directory where the file will be saved. Be sure, this directory exists and PHP can write to it. Default fileadmin/ .. _mailit: mailit """""" .. container:: table-row Property mailit Data type boolean Description Defines whether you want to send the file or not Default 1 .. _message: message """"""" .. container:: table-row Property message Data type string Description An e-mail message Default There's been a new order. .. _phpmailer: phpmailer """"""""" .. container:: table-row Property phpmailer Data type ->phpmailer Description Configuration of the phpMailer Default .. ###### END~OF~TABLE ###### [plugin.tx\_thmailformplus\_pi1.saveUserFunc] .. _PHPMailer-see-phpMailer-documentation-for-more: **PHPMailer (see phpMailer documentation for more)** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. ### BEGIN~OF~TABLE ### .. _charset: charset """"""" .. container:: table-row Property charset Data type string Description E-mail charset Default utf-8 .. _mailer: mailer """""" .. container:: table-row Property mailer Data type mail/smtp/sendmail Description Specify the method used to send an e-mail Default mail .. _smtp: smtp """" .. container:: table-row Property smtp Data type ->smtp Description If smtp is used as the mailer Default .. _smtp-host: smtp.host """"""""" .. container:: table-row Property smtp.host Data type URI Description Default .. _smtp-smtpauth: smtp.smtpauth """"""""""""" .. container:: table-row Property smtp.smtpauth Data type boolean Description Defines whether smtp authentication is needed Default 1 .. _smtp-smtpusername: smtp.smtpusername """"""""""""""""" .. container:: table-row Property smtp.smtpusername Data type string Description Default .. _smtp-smtppassword: smtp.smtppassword """"""""""""""""" .. container:: table-row Property smtp.smtppassword Data type string Description Default .. ###### END~OF~TABLE ###### [plugin.tx\_thmailformplus\_pi1.saveUserFunc.phpmailer] .. _generated: ((generated)) """"""""""""" .. _Example: Example ~~~~~~~ Adding charset conversion: :: plugin.tx_thmailformplus_pi1 { saveUserFunc { iconv.from = UTF-8 iconv.to = CP1250 } .. _Tutorial: Tutorial -------- First we have to design a HTML form, which will be used in the th\_mailformplusext. Let's have this one: ::
###ERROR###
Subject ###error_subject###
e-mail ###error_email###
Phone ###error_phone###
We've got 3 fields – subject, email, phone. Now let's create an output template: :: This is an example; ;Subject;###subject###; ;E-mail:###email###; ;Phone;###phone###; ;Some unused marker;###marker###; Notice that the markers in output match the form field names. If there's an unused marker, it will be deleted. Now we just have to define the mailformplus form. Settings from the form will be used: |img-2| .. _Known-problems: Known problems -------------- \- Don't know. .. _To-Do-list: To-Do list ---------- \- I'm done here. For `more information you can go to typo3.org `_ . |img-3| EXT: Templated output of th\_mailform\_plus - 3 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.png .. :align: left .. :border: 0 .. :height: 130 .. :name: obrázky1 .. :width: 524 .. |img-2| image:: img-2.png .. :align: left .. :border: 0 .. :height: 162 .. :name: obrázky2 .. :width: 344 .. |img-3| image:: img-3.png .. :align: left .. :border: 0 .. :height: 32 .. :id: Graphic1 .. :name: Graphic1 .. :width: 102