[TYPO3-german] cObj->Form: recipient wird nicht übernommen
Mischa Heißmann
mischa.heissmann at heissmann.org
Thu Nov 15 12:59:37 CET 2007
Tachchen zusammen,
ich hoffe jetzt mal auf eure Hilfe. Ich möchte mit cObj->FORM in einer
Extension ein Formular erstellen. Das klappt auch soweit gut. Es wird alles
angezeigt, E-Mails überprüft etc.
ABER: der recipient wird nicht ausgegeben im Formular und damit wird auch
keine E-Mail verschickt. Kann jemand hier helfen?
Php:
[CODE]
$conf['layout'] = '<fieldset class="csc-mailform"><div
class="csc-mailform-field">###LABEL### ###FIELD###</div></fieldset>';
$conf['dontMd5FieldNames'] = 1;
$conf['strictFormmail'] = 0;
$conf['secureFormmail'] = 0;
$conf['labelWrap'] = "|";
$conf['badMess'] = $this->pibase->pi_getLL('badsubmit', 'Please fill
out the following fields:nn');
$conf['REQ'] = 1;
$conf['REQ.']['wrap'] = '|*';
$conf['params.']['submit'] = 'class="submit"';
$conf['accessibility'] = 1;
$conf['formName'] = 'bestellform';
$conf['type'] =
$this->pi_getFFvalue($this->pibase->cObj->data['pi_flexform'], "target",
"bestellung");
$conf['emailMess'] = 'Sorry, keine E-Mail-Adresse!';
$conf['recipient'] = 'mischa.heissmann at flad.de';
$conf['redirect'] =
$this->pi_getFFvalue($this->pibase->cObj->data['pi_flexform'], "target",
"bestellung");
$formData = array();
$formData[] = array($this->pibase->pi_getLL('branche',
'Branch'),'*Branche=input, 40','');
$formData[] = array($this->pibase->pi_getLL('firstname', 'First
name'),'*Vorname=input, 40','');
$formData[] = array($this->pibase->pi_getLL('lastname', 'Last
name'),'*Nachname=input, 40','');
$formData[] = array($this->pibase->pi_getLL('office',
'Office'),'*Abteilung=input, 40','');
$formData[] = array($this->pibase->pi_getLL('street',
'Street'),'*Strasse=input, 40','');
$formData[] = array($this->pibase->pi_getLL('zip',
'Postcode'),'*PLZ=input, 40','');
$formData[] = array($this->pibase->pi_getLL('city',
'City'),'*Ort=input, 40','');
$formData[] = array($this->pibase->pi_getLL('country',
'Country'),'*Land=input, 40','');
$formData[] = array($this->pibase->pi_getLL('mail',
'E-Mail'),'*email=input, 40','','EMAIL');
$formData[] = array($this->pibase->pi_getLL('fone',
'Fone'),'*Telefon=input, 40','');
$formData[] = array($this->pibase->pi_getLL('fax',
'Fax'),'*Fax=input, 40','');
$formData[] =
array('','formtype_mail=submit',$this->pibase->pi_getLL('submit_button_label',
'Submit form'));
$formData[] = array('','html_enabled=hidden','1');
$formData[] = array('','cmd=hidden','1');
$formData[] =
array('','auto_respond_msg=hidden',$this->pi_getFFvalue($this->pibase->cObj->data['pi_flexform'],
"recipient", "bestellung"));
$formData[] = array('','subject=hidden','Broschürenbestellung');
$content = '';
$markerArray['###FORM###'] =
$this->pibase->cObj->FORM($conf,$formData);
[/CODE]
Grüße,
Mischa
More information about the TYPO3-german
mailing list