Hey,
Ok using the following to send a plain text email:
// create final message, $text refers to the textarea they typed the original message in
$message2 = "Dear $firstname,\n\n$text\n\nRegards,\nThe Team\n\n";
// send email
$headers = "X-Priority: 3\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: $From\r\n";
$ok = @mail($recipient, $subject, $message2, $headers);
if ($ok) {
echo "The email has been successfully sent to $recipient.<br>";
} else {
echo "The email could not be sent to $recipient. Sorry!<br>";
}
And this is the textbox I am using to type in the message I want to send:
<textarea name="text" cols="90" rows="20" id="text"></textarea>
So for example if I write:
Hello,
How are you?
I get:
Hello,
How are you?
It seems to add a line to the line breaks???
Any ideas?
Cheers,
Chris