note 46559 added to function.mail

From: Date: Fri, 15 Oct 2004 13:37:13 +0000
Subject: note 46559 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-78583@lists.php.net to get a copy of this message
I encountered a similar error to that reported by Derek (09-Feb-2004 01:03). I was getting spaces in messages sent with HTML formatting, which meant the HTML was sometimes wrong due to spaces between the < and the tag. I solved it using the wordwrap function too. Something along these lines was perfect: $body = "<html><body>".wordwrap((nl2br($message).$links), 100)."</body></html>"; $sent = mail($to, $subject, $body, $headers); ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46559 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46559&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46559&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46559&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46559&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46559&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46559&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46559&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78583) next »