[help] Bizarre mail() problem



Hi all,

New here - arrived out of desperation....

I have some basic code as follows:

[code]
....
$name=$details['name']//this coming from mysql query
.....
$subject="my subject";
$body=<<<MESSAGE
$name

Thank you for blah blah blah
MESSAGE;

mail($toaddress,$subject,$body, "From: $admin_email");
[/code]

All very basic stuff, I've used it a million times.

Now, in a bizarre turn of events, the message body ONLY shows the value of $name. Nothing below that comes through in the email.

Even more bizarre - if I echo the contents of $body to the page, everything shows up fine. I have pasted this into my editor to check for stray characters, but there's nothing out of the ordinary.

Does anyone have any clues as to what's happening - its driving me mad!

.