You are here: [help] Bizarre mail() problem « All PHP « IT news, forums, messages
[help] Bizarre mail() problem

Posted by Ben Jamieson on 09/28/05 05:52

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация