# Kontaktformular Fehlermeldung

**URL:** <https://forum.shopware.com/t/kontaktformular-fehlermeldung/13228>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [17. Mai 2013 um 10:26 UTC](https://forum.shopware.com/t/kontaktformular-fehlermeldung/13228 "2013-05-17T10:26:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xkoy](https://avatars.discourse-cdn.com/v4/letter/x/258eb7/32.png) [@xkoy](https://forum.shopware.com/u/xkoy)\
**Post date:** [17. Mai 2013 um 10:26 UTC](https://forum.shopware.com/t/kontaktformular-fehlermeldung/13228/1 "2013-05-17T10:26:17Z")

</div>

Hi, wenn man das Kontaktformular abschicken will, kommt folgende Fehlermeldung: (Bestellungen gehen durch, nur nicht das Formular…) `You are not allowed to use the domain gmail.com as a sender domain. in Zend/Mail/Protocol/Abstract.php on line 431` `Stack trace: #0 Zend/Mail/Protocol/Smtp.php(261): Zend\_Mail\_Protocol\_Abstract-\>\_expect(250, 300) #1 Zend/Mail/Transport/Smtp.php(207): Zend\_Mail\_Protocol\_Smtp-\>mail('meineemail@gmail.co...') #2 Zend/Mail/Transport/Abstract.php(348): Zend\_Mail\_Transport\_Smtp-\>\_sendMail() #3 Zend/Mail.php(1194): Zend\_Mail\_Transport\_Abstract-\>send(Object(Enlight\_Components\_Mail)) #4 Shopware/Controllers/Frontend/Forms.php(282): Zend\_Mail-\>send() #5 Shopware/Controllers/Frontend/Forms.php(164): Shopware\_Controllers\_Frontend\_Forms-\>commitForm() #6 Enlight/Controller/Action.php(135): Shopware\_Controllers\_Frontend\_Forms-\>indexAction() #7 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch('indexAction') #8 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #9 Shopware/Bootstrap.php(79): Enlight\_Controller\_Front-\>dispatch() #10 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #11 shopware.php(74): Enlight\_Application-\>run() #12 {main}`

---

<div class="post-metadata">

**Author:** ![zwilla](https://avatars.discourse-cdn.com/v4/letter/z/74df32/32.png) [@zwilla](https://forum.shopware.com/u/zwilla)\
**Post date:** [6. September 2013 um 09:57 UTC](https://forum.shopware.com/t/kontaktformular-fehlermeldung/13228/2 "2013-09-06T09:57:41Z")

</div>

Hallo Zusammen, lange ist es her, eine [Lösung](http://forum.shopware.de/installation-einstieg-f54/mailversand-problem-b-kontakt-u-anfrage-formular-4-05-t10729.html#p56370) gibt es hier, habe genau das gleiche Problem. Das [Kontaktformular](https://www.zwilla.de/ssl/kontaktformular) crasht, sagen meine Kunden. Ursache ist ganz einfach: Das Formular ist so aufgebaut, dass der Absender des [Kontaktformulars](https://www.zwilla.de/ssl/kontaktformular) die Kunden-Emailadresse ist. Das geht eben nicht, nicht weil nicht können oder zu doof, sondern weil Google und Microsoft und andere eben sagen, dass wenn ich mit Smtp an meinem eigenen Server im Hintergund anmelde der mit zum Beispiel wie bei mir: [Shopping@Zwilla.de](mailto:Shopping@Zwilla.de), der Absender nicht [Kunde123@Shopware.de](mailto:Kunde123@Shopware.de) sein kann. Das ist eigentlich ganz logisch, klar zu verstehen und für jeden einleuchtend, nur eben nicht den Machern des Kontaktformulars. Alle anderen Formulare gehen, WEIL dort der Absender die Shopbetreiber E-Mail ist, oder in den Email-Vorlagen eben die dort hinterlegte (eventuell). Ursache des Problems liegt im Zend-Mail Modul: (eigentlich ja auch nicht, mann muss dem Formular nur erklären wer hier der Absender ist. Fertig. Wie geht das? Wo liegt das Formular? Letzter Übergabe Punkt an den Transport: /engine/Library/Zend/Mail/Transport/Smtp.php Zeile: (215): `Zend\_Mail\_Protocol\_Smtp-\>data('From:Kunde123@Shopware.de ` Zend/Mail/Protocol/Smtp.php Quelle des Übels ist jedoch: engine/Shopware/Controllers/Frontend/Forms.php [color=red]`if (!empty($postEmail)) { $mail-\>From = $postEmail; } else { $mail-\>From = Shopware()-\>Config()-\>Mail; }`[/color] Lösung: [color=green]`if (!empty($postEmail)) { /\*\* $mail-\>From = $postEmail; untere Zeile ersetzt weil der Absender falsch ist für das SMPT System\*/ $mail-\>From = Shopware()-\>Config()-\>Mail; } else { $mail-\>From = Shopware()-\>Config()-\>Mail; }`[/color] Super und Danke Gruß [Zwilla](https://www.zwilla.de/ssl/kontaktformular) [size=50]p.s. Ich will auch nicht einen auf Linux aufgesetzten SMPT benutzen oder eine andere Notlösung, sonder meinen eigenen Server und keine Bastelarbeiten, daher bitte keine Vorschläge wie man es sonst noch machen könnte.[/size]

---

<div class="post-metadata">

**Author:** ![ksk](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@ksk](https://forum.shopware.com/u/ksk)\
**Post date:** [10. Februar 2015 um 13:01 UTC](https://forum.shopware.com/t/kontaktformular-fehlermeldung/13228/3 "2015-02-10T13:01:26Z")

</div>

Super, danke Dir! Genau das Problem habe ich gerade - verstehe nicht das Shopware das nicht bereits gefixt hat. Wieder ein Core-Hack!

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [10. Februar 2015 um 14:50 UTC](https://forum.shopware.com/t/kontaktformular-fehlermeldung/13228/4 "2015-02-10T14:50:33Z")

</div>

Hallo, dafür brauch man eigentlich keinen Core-Hack. Sobald im Formular ein Typ “email” ist, dann wird dieser als Absender genutzt, wenn ihr dort “Text” als Feldtyp einstellt, dann wird die im Formular hinterlegte Adresse genutzt. Also könnt ihr einfach den Feldtyp über das Backend auf “text” setzen und dann im Backend für das Formular eine gültige Adresse einsetzen. Dann funktioniert das auch im Standard ohne Core-Anpassung. Viele Grüße Moritz

---

<div class="post-metadata">

**Author:** ![ksk](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@ksk](https://forum.shopware.com/u/ksk)\
**Post date:** [10. Februar 2015 um 15:00 UTC](https://forum.shopware.com/t/kontaktformular-fehlermeldung/13228/5 "2015-02-10T15:00:13Z")

</div>

Hallo Moritz, das hab ich hier auch schon gelesen, allerdings prüft er dann nicht mehr auf korrekte eMail. Da ich bereits 2 weitere Core-Anpassungen habe tut der eine mehr oder weniger nicht weh - habe ja Hoffnung dass das eine oder andere in den Core übernommen oder angepasst wird.
