Reply to Re: Line break in email

Your name:

Reply:


Posted by nice.guy.nige on 08/20/07 00:13

While the city slept, Shelly (sheldonlg.news@asap-consult.com) feverishly
typed...

[...]
> $message .= "\\nThank you for your order.";
[...]

If this is an exact copy of the kind of text you are using then herein lies
your problem...

The backslash is used to escape a character. Therefore, to allow a backslash
to appear in the text itself, you would escape it with another backslash. So
the text above is escaping the backslash and will literally output "\nThank
you for your order."

Change that to...

$message .= "\nThank you for your order."; // note - only one backslash

.... and you should be ok.

Hope that helps.

Cheers,
Nige

--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"

[Back to original 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

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