Hallo Leute,
ich habe auf einer Kontaktseite das Mailformplus installiert. Funktioniert auch einwandfrei. Jetzt möchte ich im Formular gern eine Selectbox unterbringen, in der ich festlege an welche Empfänger-Email Adresse die Formulardaten geschickt werden sollen. Üblicherweise wird der Empfänger ja im Backend des Mailformplus angegeben.
Kann mir bitte jemand helfen? #giggle#
Liebe Grüße, Svenja
hi
habe genau das selbe problem und wäre für eine Lösung dankbar
viele grüsse
poty
hi
habe da einen Lösungsansatz gefunden
im manual von th_mailformplus steht:
Let's say you want to have a dropdown filed in a form showing all departments of your company and you want a email to be sent to the head of the department when a user fills out the form and submitts it.
What we need:
a page having the departments as subpages
use the “subtitle” field of the department pages to store the email-addresses for each department.
place a placeholder ###pulldown_departments### in the right place of your HTML-template
... then put this code to your TypoScript setup:
temp.jsmenu = HMENU
temp.jsmenu.special = directory
temp.jsmenu.special.value = 123 # page ID having departments as subpages
temp.jsmenu.1 = TMENU
temp.jsmenu.1 {
expAll = 0
wrap = <select name="email_to" class="form_dropdown"><option value="no department selected" class="form_dropdown">please select a department</option>|</select>
NO {
before.data = field:subtitle
before.wrap = <option value="|" class="form_dropdown">
doNotLinkIt = 1
allWrap = | </option>
}
CUR < .NO
CUR = 1
CUR.before.wrap = <option value="|" selected="" class="form_dropdown">
}
plugin.tx_thmailformplus_pi1.markers.pulldown_departments < temp.jsmenu
Servus,
habe grade versucht das mal umzusetzen. Klappt eigentlich ganz gut, aber leider wird die Mail nach wie vor nur an die im BE angegebene Adresse verschickt. Auch wenn ich diese z.B. entferne kommt keine Email bei den Adressen an, welche im Subheader der Unterseiten stehen.
Hier hatte jemand wohl das selbe Problem:
http://lists.netfielders.de/pipermail/typo3-at/2006-February/007542.html
Dem konnte in der Liste nicht geholfen werden, bzw. ich glaube, er wurde falsch verstanden 😉
Kann hier jemand helfen?
Hannes
Ich hatte das Problem eben auch. Bei mir funktioniert es jetzt mit folgendem TS:
plugin.tx_thmailformplus_pi1.default.email_to = TEXT
plugin.tx_thmailformplus_pi1.default.email_to.data = GPvar:email_to
Bei mir hat folgendes funktioniert,
Im HTML-Template:
<tr>
<td valign="top"><input type="radio" name="contact_to" value="hans" checked style="border-style:none;" ###checked_contact_to_hans###>an Hans</td>
<td valign="top"><input type="radio" name="contact_to" value="franz" style="border-style:none;" ###checked_contact_to_franz###>an Franz</td>
</tr>
und im +ext Template der Seite unter Setup:
[globalVar = GP:contact_to=hans]
plugin.tx_thmailformplus_pi1.default.email_to = mail@hans.de
[end]
[globalVar = GP:contact_to=franz]
plugin.tx_thmailformplus_pi1.default.email_to = mail@franz.de
[end]
Das Feld : sende Formulardaten an folgende eMail im "mailformplus-datensatz" habe ich leer gelassen (mailformplus v 3.8-).
Ich hoffe das ist hilfreich und funktioniert auch bei anderen.
so einfach wie genial. danke matthias!