Ergebnis 1 bis 4 von 4

Thema: Mailformplus + mehrere Empfänger

      
  1. #1
    Forum Aktivist
    Registriert seit
    30.10.2009
    Alter
    27
    Beiträge
    70

    Mailformplus + mehrere Empfänger

    Hallo liebe Comm!

    Ich bin mal wieder am verzweifeln, wahrscheinlich ist es nur ein Tippfehler den ich nicht sehe...

    Ich versuche gerade ein Mailformplus-Kontaktformular mit einer Empfängerauswahl zu erstellen.

    Soweit so gut. Das mitgelieferte Template habe ich mit diesem Code aufgefüllt
    Code:
     
     
     
    <label for="kontakt">###LLL:kontakt###
      <select name="contact_to"> 
      <option value="Empfaenger1" ###checked_contact_to_Empfaenger1###>Empfaenger1</option>
      <option value="Empfaenger2" ###checked_contact_to_Empfaenger2###>Empfaenger2</option>
      <option value="Empfaenger3" ###checked_contact_to_Empfaenger3###>Empfaenger3</option>
      <option value="Empfaenger4" ###checked_contact_to_Empfaenger4###>Empfaenger4</option>
      <option value="Empfaenger5" ###checked_contact_to_Empfaenger5###>Empfaenger5</option>
      <option value="Empfaenger6" ###checked_contact_to_Empfaenger6###>Empfaenger6</option>
      </select></label>
    <br>
    <br>
    Das Formular wird auch so angezeigt, wie ich mir das vorgestellt habe.

    Im Typoscript steht folgendes:
    Code:
    # path to language file
    plugin.tx_thmailformplus_pi1.langFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_lang.php
     
    # path to stylesheet file
    plugin.tx_thmailformplus_pi1.stylesheetFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_css.css
     
    # specify the symbol for required fields
    plugin.tx_thmailformplus_pi1.default.required_marker = *
     
    # receiver of the admin mail
    plugin.tx_thmailformplus_pi1.default.email_to = admin@msvb.de
     
    # subject of the admin mail is set to the subject the user entered in the form
    plugin.tx_thmailformplus_pi1.default.email_subject = TEXT
    plugin.tx_thmailformplus_pi1.default.email_subject.data = GPVar:subject
     
    # the user mail is sent to the email address the user entered in the form
    plugin.tx_thmailformplus_pi1.default.email_sendtouser = email
     
    # usbject of the user mail
    plugin.tx_thmailformplus_pi1.default.email_subject_user = Your contact request
     
    # sender of the mails
    plugin.tx_thmailformplus_pi1.default.email_sender = noreply@msvb.de
     
     
    # errorChecks for the form fields
    plugin.tx_thmailformplus_pi1.fieldConf {
      name {
          errorCheck = required
      }
      email {
        errorCheck = required,email
      }
      text {
        errorCheck = required
      }
    }      
     
    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 = |
     
    ###
    ###Empfängeradressen###
    ###
    [globalVar = GP:contact_to=Empfaenger1]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger1@seite.de
    [globalVar = GP:contact_to=Empfaenger2]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger2@seite.de
    [globalVar = GP:contact_to=Empfaenger3]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger3@seite.de
     
    [globalVar = GP:contact_to=Empfaenger4]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger4@seite.de
     
    [globalVar = GP:contact_to=Empfaenger5]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger5@seite.de
     
    [globalVar = GP:contact_to=Empfaenger6]
    plugin.tx_thmailformplus_pi1.default.email = Empfaenger6@seite.de
    [end]
    Nun war ich mir nicht sicher, ob es im Typoscript vielleicht [globalVar = GPVar:contact_to=admin] heißen muss, aber auch wenn ich das ändere funktioniert nicht alles.

    Was momentan alles funktioniert:
    -Das Formular wird richtig angezeigt
    -Wenn ich es ausfülle, bekommt der Absender des Formulares eine Bestätigungsmail
    -Wenn das Formular abgeschickt wird, bekommt auch der Admin ein Mail.
    ( # receiver of the admin mail
    plugin.tx_thmailformplus_pi1.default.email_to = admin@msvb.de )

    Was nicht funktioniert:
    -Das Postfach des ausgewählten Empfängers bleibt leer.


    Achso in den Plug-In Einstellung steht nur Betreff für die Bestätigungsmail, also da ist kein Empfänger reingeschrieben, weil dieser ja über das Auswahlfeld im Formular ausgewählt werden soll.


    Woran liegt das? Ich seh nich mehr durch.

    Hoffe mir ist noch zu helfen!

    Bis dahin wünsche ich einen schönen dritten Advent an alle!
    Geändert von greinerd (14.12.2009 um 20:48 Uhr)

  2. #2
    gmf
    gmf ist offline
    Forum Aktivist
    Registriert seit
    28.07.2009
    Alter
    27
    Beiträge
    67
    Sieht eigentlich ganz gut aus.Hast du überprüft ob überhaupt ein Wert in contact_to übergeben wird? Also ob der richtige Wert in den GET/POST-Parametern steht?

  3. #3
    Forum Aktivist
    Registriert seit
    30.10.2009
    Alter
    27
    Beiträge
    70
    Hallo! Danke für die Antwort!

    Aber irgendwie weiß ich grad nicht, wie ich das testen soll...

    mfg, david.

  4. #4
    Forum Aktivist
    Registriert seit
    30.10.2009
    Alter
    27
    Beiträge
    70
    Okeeeh es war ein Kampf, aber ich hab es endlich geschafft.

    Hier die Lösung für Leute mit ähnlichen Problemen.

    Das muss im Typoscript stehen: Natürlich müssen die Pfade noch jeweils angepasst werden.

    Code:
    ###### 
    #kontaktformular
    ######  
     
    # path to language file
    plugin.tx_thmailformplus_pi1.langFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_lang.php
    # path to stylesheet file
    plugin.tx_thmailformplus_pi1.stylesheetFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_css.css
    # specify the symbol for required fields
    plugin.tx_thmailformplus_pi1.default.required_marker = *
    # receiver of the admin mail
    plugin.tx_thmailformplus_pi1.default.email_to = admin@seite.de
    # subject of the admin mail is set to the subject the user entered in the form
    plugin.tx_thmailformplus_pi1.default.email_subject = TEXT
    plugin.tx_thmailformplus_pi1.default.email_subject.data = GPVar:subject
    # the user mail is sent to the email address the user entered in the form
    plugin.tx_thmailformplus_pi1.default.email_sendtouser = email
    # usbject of the user mail
    plugin.tx_thmailformplus_pi1.default.email_subject_user = Your contact request
    # sender of the mails
    plugin.tx_thmailformplus_pi1.default.email_sender = noreply@seite.de
     
    # errorChecks for the form fields
    plugin.tx_thmailformplus_pi1.fieldConf {
      name {
       errorCheck = required
      }
      email {
        errorCheck = required,email
      }
      text {
        errorCheck = required
      }
    }      
    plugin.tx_thmailformplus_pi1.default.contact_to = TEXT
    plugin.tx_thmailformplus_pi1.default.contact_to.data = GPvar:contact_to
     
    ###
    ###Empfängeradressen###
     
    [globalVar = GP:contact_to=Empfaenger1]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger1@seite.de
    [globalVar = GP:contact_to=Empfaenger2]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger2@seite.de
    [globalVar = GP:contact_to=Empfaenger3]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger3@seite.de
     
    [globalVar = GP:contact_to=Empfaenger4]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger4@seite.de
     
    [globalVar = GP:contact_to=Empfaenger5]
    plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger5@seite.de
     
    [globalVar = GP:contact_to=Empfaenger6]
    plugin.tx_thmailformplus_pi1.default.email = Empfaenger6@seite.de
    [end]
    Das Template (improved_demo.html) hab ich mit folgendem Code ergänzt:

    Code:
    <label for="kontakt">###LLL:kontakt###
      <select name="contact_to"> 
      <option value="Empfaenger1" ###checked_contact_to_Empfaenger1###>Empfaenger1</option>
      <option value="Empfaenger2" ###checked_contact_to_Empfaenger2###>Empfaenger2</option>
      <option value="Empfaenger3" ###checked_contact_to_Empfaenger3###>Empfaenger3</option>
      <option value="Empfaenger4" ###checked_contact_to_Empfaenger4###>Empfaenger4</option>
      <option value="Empfaenger5" ###checked_contact_to_Empfaenger5###>Empfaenger5</option>
      <option value="Empfaenger6" ###checked_contact_to_Empfaenger6###>Empfaenger6</option>
      </select></label>

    Um zur ursprünglichen Frage zurückzukehren:

    Der Fehler lag an diesem unnötigen Eintrag im Typoscript.
    Code:
    plugin.tx_thmailformplus_pi1.default.contact_to.wrap = |
    Wo auch immer ich den her hatte, er hat mir das Leben sehr schwer gemacht. Kleine Ursache, große Wirkung.

    Viel Erfolg wünsch ich euch allen.

 

 

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Facebook Kommentare

Ähnliche Themen

  1. Mailformplus sendet keine Sonderzeichen
    Von tasty im Forum Alle anderen Extensions
    Antworten: 3
    Letzter Beitrag: 22.06.2009, 19:43
  2. mailformplus - multiple recipients
    Von tyan_trinity im Forum Alle anderen Extensions
    Antworten: 5
    Letzter Beitrag: 28.08.2008, 14:03
  3. mailformplus fehlt unter Templavoila
    Von bolshi im Forum TemplaVoila
    Antworten: 3
    Letzter Beitrag: 10.12.2006, 21:54
  4. Antworten: 1
    Letzter Beitrag: 27.11.2006, 14:40
  5. Mailformplus verschickt keine Mails
    Von mbayerl im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 2
    Letzter Beitrag: 01.11.2006, 08:22

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

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