Putting a line feed in an email
| From: | Brian Dunning | Date: | Mon, 27 Sep 2004 16:05:24 +0000 |
| Subject: | Putting a line feed in an email | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-197968@lists.php.net to get a copy of this message | ||
Hey all -
I'm sending a regular text email with a mailto:link like this:
<?php
$subject = 'My Email Subject';
$body = 'My Email body';
echo "<a href=\"mailto:?subject=$subject&body=$body\">";
?>
I want the $body to contain some line feeds mixed in with the text. I've tried putting \n, \r, and things like that in there, but they just display in the text. Anyone know a way I can do this? I'm using the mailto: method for its simplicity and client-side nature, because I want their email program to be responsible for servers, bouncing, etc.
Thanks,
- Brian