#1  
Alt 22.02.07, 18:55
Forum Aktivist
 
Registriert seit: 10.02.07
Beiträge: 58
mailformplus - multiple recipients

Hallo zusammen!

Ich benutze TYPO3 Ver. 4.0.2. Ich habe mich heute ein wenig mit mailformplus auseinandergesetzt und in diesem Forum schon einige hilfreiche Hinweise für die Konfiguration gefunden. Nur eins bereitet mir im Moment noch Kopfzerberechen:

Ich möchte das mailformplus multiple empfänger zulässt. Laut Manual ist das ja nicht schwierig:

Zitat:
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:

1. a page having the departments as subpages
2. use the “subtitle” field of the department pages to store the email-addresses for each department.
3. place a placeholder ###pulldown_departments###
(in meinem Fall: ###dropdown_recipients###) in the right place of your HTML-template

... then put this code to your TypoScript setup:
Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
temp.jsmenu = HMENU
temp.jsmenu.special = directory
temp.jsmenu.special.value = 44
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.dropdown_recipient < temp.jsmenu

Genau das habe ich getan. Es funktioniert aber nur bedingt:

wenn ich bei mailformplus unter sende die Formularfelder an folgende Email: meine E-Mailadresse angebe, dann funktioniert es insofern, als das ich eine E-Mail an die hier angegebene E-Mailadresse erhalte, in der dann wiederrum die jeweilige E-Mailadresse aus den Subtitles, die per Pulldown ausgewählt wurde als Wert für email_to: drinsteht.

Gebe ich keine E-Mailadresse in sende die Formularfelder an folgende Email: an, erhalte ich keine E-Mail, an keine der auswählbaren Adressen.

Woran liegt es? Muss ich das TypoScript oben einfach nur noch um ein paar Zeilen ergänzen oder geht das was ich möchte schlichtweg nicht??

Für hilfreiche Antworten sehr dankbar,

Tyan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Sponsored Links
Unterstützen Sie das Forum und buchen Sie Ihren Webspace beim
T3N Testsieger, dem Webhoster der auch dieses Forum hostet!


  #2  
Alt 22.02.07, 19:58
Forum Aktivist
 
Registriert seit: 10.02.07
Beiträge: 58

Hallo zusammen,

ist mir jetzt ein wenig peinlich, aber ich habe die Lösung in einem anderen Forum gefunden. Ich habe heute über den Tag sicher schon 4 Stunden Manuals gewälzt und Google überbeansprucht. Anscheinend habe ich jetzt endlich die richtigen keywords für meine Suche gefunden:

mailformplus markers.pulldown_departments

Die Lösung für mein Problem fand ich hier:

typo-3.de - Mehrfach Empfänger Auswahl im Mailformplus

Und zwar muss mein obengenanntes Typo Script noch um diese beiden Zeilen erweitert werden, dann funktioniert es tadellos:

Typoscript-Code:
1:
2:
plugin.tx_thmailformplus_pi1.default.email_to = TEXT
plugin.tx_thmailformplus_pi1.default.email_to.data = GPvar:email_to

Vielleicht hilft die Duplizierung der Information zukünftigen Hilfesuchenden schneller eine Antwort zu finden !

Tyan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 26.02.07, 17:19
Forum Aktivist
 
Registriert seit: 10.02.07
Beiträge: 58

Wenn man die Mehrfachempfängerauswahl nicht über ein Directory machen will, kann man übrigens auch ganz einfach eine Selectbox in das mailformplus_template einbauen, z.B.

HTML-Code:
<tr>
<td valign="top">Betreff:</td>
<td valign="top"><select name="contact_to">
<option value="Allgemein" ###checked_contact_to_allgemein###>Anfrage Allgemein</option>
<option value="Speziell" ###checked_contact_to_speziell###>Anfrage Speziell</option>
</select></td>
</tr> 
Zusätzlich macht man im TypoScript noch folgendes:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
[globalVar = GP:contact_to=Allgemein]
plugin.tx_thmailformplus_pi1.default.email_to = [email]adresse1@irgendwas.de[/email]
[end]
[globalVar = GP:contact_to=Speziell]
plugin.tx_thmailformplus_pi1.default.email_to = [email]adresse2@irgendwas.de[/email]
[end]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 06.03.07, 09:03
Forum Newbie
 
Registriert seit: 07.10.05
Beiträge: 18
Bei mir funktionierts leider nicht...

Hallo tyan_trinity,

ich stand genau vor demselben Problem und hab die nachfolgenden Lösungen ausprobiert - leider ohne Erfolg. Folgende Schritte habe ich vorgenommen:

- Extension heruntergeladen
- Extension installiert
- Seite -> Inhalt Plugin einfügen -> Mailformplus
- Liste -> Neuer Mailformplus-Eintrag
- Mailformplus konfiguriert, Template erstellt

Bis hierher funktionierts, E-Mails landen alle an der gewünschten Adresse.

Dann folgendes:

- Template hinzugefügt:

<select name="email_to">
<option value="Support" ###checked_email_to_support###>Support</option>
<option value="Service" ###checked_email_to_service###>Service</option>
<option value="Privat" ###checked_email_to_privat###>Privat</option>
</select>

- und im Setup:

plugin.tx_thmailformplus_pi1.default.contact_to = TEXT
plugin.tx_thmailformplus_pi1.default.contact_to.data = GPvar:contact_to
plugin.tx_thmailformplus_pi1.default.contact_to.wrap = |

[globalVar = GP:contact_to=Support]
plugin.tx_thmailformplus_pi1.default.email_to = support@dege-komm.de
[end]
[globalVar = GP:contact_to=Service]
plugin.tx_thmailformplus_pi1.default.email_to = service@dege-komm.de
[end]
[globalVar = GP:contact_to=Privat]
plugin.tx_thmailformplus_pi1.default.email_to = hansb77@hotmail.com
[end]


Egal was ich mache - es landet alles bei der Support-Adresse. Habe auch schon die Mailadresse in der Konfig von Mailformplus rausgeworfen (dann kam gar nichts mehr an) und alles auf email_to und contact_to gestellt - ohne Erfolg.

Woran hängts denn?

Vielen Dank!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #5  
Alt 06.03.07, 17:56
Forum Aktivist
 
Registriert seit: 10.02.07
Beiträge: 58

Hallo Boomer,

du hast den <select name="email_to"> und übergibst aber [globalVar = GP:contact_to=Support].

Grüße

Tyan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #6  
Alt 28.08.08, 15:03
Forum Zuschauer
 
Registriert seit: 20.11.07
Beiträge: 10

Moin,

hat mal irgendwer das Problem gehabt, bzw. darüber nachgedacht, dass die zweite Variante im Hinblick auf Spam-Versand über das Formular anfällig sein könnte?

Wir haben bei einer Installation eben jene Variante verwendet und mal testweise mit der Firefox Extension Firebug direkt in das Option Tag eine E-Mail-Adresse geschrieben. Dann greifen die Conditions nicht und der Wert (schließlich ein beliebiger) wird genommen.

Könnte es sein, dass das Problem auftritt, sobald kein fester Wert (in der Flexform des Inhaltselements) konfiguriert wird?
Weiß vielleicht jemand eine Möglichkeit dieses Problem zu umgehen?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Working with multiple language websites in TYPO3? Junior FAQ - Sonstiges 2 14.07.09 19:49
Powermail und Multiple Selectbox Radiesel powermail 5 09.04.08 15:25
powermail - multiple select sandyweb powermail 3 12.03.08 18:57
Multiple Typo3 installation auf einem Webserver EmZet TYPO3 4.x Installation und Updates 8 13.12.07 09:26
Multiple Checkbox kommanderprix TYPO3 4.x FE-User 0 13.12.06 16:05


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:52 Uhr.


Powered by vBulletin® Version 3.8.4 (Deutsch)
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165