Formhandler versendet kein Mails
| Autor | Nachricht |
|---|---|
|
Verfasst am: 04. 12. 2011 [12:36]
|
|
|
mbuchegger
Dabei seit: 16.11.2007
Beiträge: 76
|
Hallo. Vorab. Bin kein Meister des Programmierens Steh grad an, vielleicht kann mir wer von euch helfen. Hab früher mit der ext Mailformer gearbeitet, da hat alles funktioniert. Aber bei Formhandler hab ich das Problem, dass ich ein Formular angezeigt bekomme, ich kann es ausfüllen, bestätigen, aber dann ladet der browser einfach die seite neu und das formular bleib ausgefüllt. Geht nicht an die vordefinierte "Versandseite" weiter und schickt auch keine Mail weg. Auch in der Backend-Version von Formhandler sehe ich keinen Datensatz. Hab jetzt einiges ausprobiert, aber komm auf keinen grünen punkt Folgendes ist inhalt des Erweiterungstemplates zum eigentlichen Template. Meine Konstanten: TYPOSCRIPT formhandlerExamples.basic.field-demo-contact-form { # cat=Formhandler Examples - Basic - Field Demo Contact Form/basic/10; type=string; label=Root path: Path where the example was saved to. rootPath = fileadmin/forms/kontaktformular/ email { user { # cat=Formhandler Examples - Basic - Field Demo Contact Form/basic/20; type=string; label=User email sender: Email address to use as sender address for the user email. sender_email = noreply@thatsmusical.or.at } admin { # cat=Formhandler Examples - Basic - Field Demo Contact Form/basic/20; type=string; label=Admin email sender: Email address to use as sender address for the admin email. sender_email = kontaktformular@thatsmusical.or.at # cat=Formhandler Examples - Basic - Field Demo Contact Form/basic/20; type=string; label=Admin email recipient: Email address of an admin to receive the contact request. to_email = verwaltung@thatsmusical.or.ar } } # cat=Formhandler Examples - Basic - Field Demo Contact Form/basic/40; type=string; label=Redirect Page: Page ID to redirect after successful form submission. redirectPage = 13 } Mein Setup TYPOSCRIPT plugin.Tx_Formhandler.settings.predef.formhandler-basic-fielddemocontactform { # This is the title of the predefined form shown in the dropdown box in the plugin options. name = Kontaktformular # All form fields are prefixed with this values (e.g. contact[name]) formValuesPrefix = kontaktformular langFile.1 = TEXT langFile.1.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/lang/lang.xml templateFile = TEXT templateFile.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/html/step-1.html # The master template is a file containing the markup for specific field types or other sub templates (e.g. for emails). You can use these predefined markups in your HTML template for a specific form. masterTemplateFile = TEXT masterTemplateFile.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/html/mastertemplate.html # If you use YAML, you don't need to include 1&2 cssFile { 10 = TEXT 10.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/skin/css/base.css 20 = TEXT 20.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/skin/css/forms.css 25 = TEXT 25.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/skin/css/special.css 30 = TEXT 30.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/skin/css/colors.css } # These wraps define how an error messages looks like. The message itself is set in the lang file. singleErrorTemplate { totalWrap = <div class="error">|</div> singleWrap = <span class="message">|</span> } # This block defines the error checks performed when the user hits submit. validators { 1.class = Validator_Default 1.config.fieldConf { name.errorCheck.1 = required email.errorCheck.1 = required email.errorCheck.2 = email message.errorCheck.1 = required } } # Finishers are called after the form was submitted successfully (without errors). finishers { # Finisher_Mail sends emails to an admin and/or the user. 1.class = Finisher_Mail 1.config { checkBinaryCrLf = message admin { templateFile = TEXT templateFile.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/html/email-admin.html sender_email = {$formhandlerExamples.basic.field-demo-contact-form.email.admin.sender_email} to_email = {$formhandlerExamples.basic.field-demo-contact-form.email.admin.to_email} subject = TEXT subject.data = LLL:{$formhandlerExamples.basic.field-demo-contact-form.rootPath}/lang/lang.xml:email_admin_subject } } # Finisher_Redirect will redirect the user to another page after the form was submitted successfully. 5.class = Finisher_Redirect 5.config { redirectPage = {$formhandlerExamples.basic.field-demo-contact-form.redirectPage} } } } # If the user has chosen to receive a copy of the contact request, reconfigure Finisher_Mail to send an email to the user to. [globalVar = GP:contact|receive-copy = 1] plugin.Tx_Formhandler.settings.predef.formhandler-basic-fielddemocontactform { finishers { 1.config { user { templateFile = TEXT templateFile.value = {$formhandlerExamples.basic.field-demo-contact-form.rootPath}/html/email-user.html sender_email = {$formhandlerExamples.basic.field-demo-contact-form.email.user.sender_email} to_email = email subject = TEXT subject.data = LLL:{$formhandlerExamples.basic.field-demo-contact-form.rootPath}/lang/lang.xml:email_user_subject } } } } [global] glg M.
|



