Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: de.comp.lang.php Subject: Re: Programmierfrage Kontaktmailfehler Supersedes: <5590649.T8Zy0RakcG@PointedEars.de> Date: Fri, 11 Mar 2016 21:31:42 +0100 Organization: PointedEars Software (PES) Lines: 34 Message-ID: <2965772.A9pbNC1pib@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1457728303 6991 eJwFwQkBACAIBLBKvAfGAYX+EdxcwbhhcJivr7zRXDLdUh15ipgp5tc4lmQWN6KFwFsZpz8bgBDU (11 Mar 2016 20:31:43 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 11 Mar 2016 20:31:43 +0000 (UTC) User-Agent: KNode/4.14.2 Cancel-Key: sha1:Wz68Jds/2+/PrLlVIKUxpSiSMXk= X-User-ID: eJwdycERgDAIBMCWxOO4UA4k0n8JOj72tURYbHkwnMM5RMuSR4E/zsB6ylO3GjVRVYPapBY7QcfSc80neuULTYYVSQ== Cancel-Lock: sha1:GcMziVMZI3C4jEc2ZO5n+p5fL8I= X-NNTP-Posting-Host: eJwFwYkRwCAMA7CVnMcGxgH3sv8IlVgKebWo5nD8rhO9CjdPRe8BsnjsSbC/tgwfRV7xYf8M7hBT Xref: csiph.com de.comp.lang.php:3734 Daniel Rafflenbeul wrote: > > Hyyy Danke für Eure Antworten.. > > Die ANtwort von Gerome Muent hat super geklappt... > > $mailtext .= "\nAnfrager E-Mail:\n" . $email_address; > $mailtext .= "Anfrager Name:\n" . $name; > $mailtext .= "Nachricht:\n" . $enquiry; Wenn das “super geklappt” ist, wie sieht dann bei Dir Müll aus? Effizienter und weniger fehlerträchtig, und vor allem *korrekt*, d. h. eine *lesbare* E-Mail erzeugend: $mailtext .= "\n\nAnfrager E-Mail: " . $email_address . "\nAnfrager Name: " . $name . "\nNachricht:\n\n" . $enquiry; (Natürlich ist schon das erste “.=” eine schlechte Idee. Sowas löst man mit “implode("\n", …)”.) > Danke schön, funktioniert jetzt einwandfrei wie ich es mir vorgestellt > hab. > [TOFU] Und *dafür* musstest Du 79 überflüssige Zeilen ins Netz blasen? -- PointedEars Zend Certified PHP Engineer | Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.