ahhhhh j'ai trouvé la solution ! (bon pas toute seule, grâce à un autre forum, voir ci dessous)
je n'ai pas tout compris encore ce qui foirait mais en utilisant la fonction wordwrap(), on évite un pb d'apparition d'espaces dans les tag html... à creuser, j'aimerais qd même bien comprendre...
Enfin ça marche,j'ai plus d'espaces indésirés.
Merci qd même !
Le forum :
http://php.planetmirror.com/manual [...] n.mail.php :
_______________________________________
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);