You are here: Re: quesiton about mailsend - having prblms with line breaks « All PHP « IT news, forums, messages
Re: quesiton about mailsend - having prblms with line breaks

Posted by davemitc on 04/18/06 08:08

hiya don, this message is being sent plain text, so nl2br() inserts <br
/> , but isn't helpful - are you saying you are aware of some glitch
with my plain text message that is solvable by switching the format to
HTML and using nl2br()?

Don Khuth wrote:
> <davemitc@gmail.com> wrote in message
> news:1145334078.751394.88640@t31g2000cwb.googlegroups.com...
> >I am sending a plain text message using this code --- and I can't seem
> > to control the line breaks for the $message part, I will unexplainably
> > get a output like
> >
> > LINE ONE
> > LINE TWO
> > LINE THREE LINE FOUR
> >
> > $from="someone@";
> > $subject = 'subject';
> >
> > $message = 'MESSAGE
> >
> > LINE ONE
> > LINE TWO
> > LINE THREE
> > LINE FOUR.....
> >
> > etc...
> >
> > ';
> >
> > $headers = 'From: ' . $from . "\r\n" .
> > 'X-Mailer: PHP/' . phpversion();
> >
> > mail($owner, $subject, $message, $headers);
> >
> >
> >
> > How do I control line breaks - or am I parsing this wrong?
> >
>
> I found that using the nl2br() function helped.

 

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

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