Kontaktformular - Kopie an Kunde

so funktioniert es bei mir (Shopware 4.3.4) Ich habe folgende Zeilen abgeändert: 1. $mail->AddBCC($postEmail, „“); 2. Auskommentiert: //$mail->ClearAddresses(); 3. $mail->From = Shopware()->Config()->Mail; Wenn man 3. nicht ändert bekommt der Kunde von sich selber eine Email. public function commitForm() { $mail = Shopware()-\>System()-\>sMailer; $template = Shopware()-\>Config()-\>Templates-\>sSUPPORT; $mail-\>IsHTML($template['ishtml']); //eMail field available check foreach ($this-\>\_elements as $element) { if ($element['typ'] == "email") { $postEmail = $this-\>\_postData[$element['id']]; $postEmail = trim($postEmail); } } if (!empty($postEmail)) { //Geändert von $postmail zu Shop Email $mail-\>From = Shopware()-\>Config()-\>Mail; //Neu Kopie an Kunde $mail-\>AddBCC($postEmail, ""); } else { $mail-\>From = Shopware()-\>Config()-\>Mail; } $content = $this-\>View()-\>sSupport; $mail-\>FromName = $mail-\>From; $mail-\>Subject = $content["email\_subject"]; $mail-\>Body = $content["email\_template"]; foreach ($this-\>\_postData as $key =\> $value) { if ($this-\>\_elements[$key]['typ'] == "text2") { $names = explode(";", $this-\>\_elements[$key]['name']); $mail-\>Body = str\_replace("{sVars." . $names[0] . "}", $value[0], $mail-\>Body); $mail-\>Body = str\_replace("{sVars." . $names[1] . "}", $value[1], $mail-\>Body); } else { $mail-\>Body = str\_replace("{sVars." . $this-\>\_elements[$key]['name'] . "}", $value, $mail-\>Body); } } $mail-\>Body = str\_replace("{sIP}", $\_SERVER['REMOTE\_ADDR'], $mail-\>Body); $mail-\>Body = str\_replace("{sDateTime}", date("d.m.Y h:i:s"), $mail-\>Body); $mail-\>Body = str\_replace('{$sShopname}', Shopware()-\>Config()-\>shopName, $mail-\>Body); $mail-\>Body = strip\_tags($mail-\>Body); //Auskommentiert da sonst keine CC BCC Mail //$mail-\>ClearAddresses(); Unterdrückt alles $mail-\>AddAddress($content["email"], ""); $mail = Enlight()-\>Events()-\>filter('Shopware\_Controllers\_Frontend\_Forms\_commitForm\_Mail', $mail, array('subject' =\> $this)); if (!$mail-\>Send()) { throw new Enlight\_Exception("Could not send mail"); } }