Page 1 of 1
About break newsletter text with wordwrap
Posted: Wed Jun 20, 2007 2:06 am
by webstyler
Hello
We break a newsletter text with this code
Code: Select all
$row[text] = wordwrap($row[text], 74, "\r\n");
Question is: there are problem with tag "breaked" ?
ex.
---
(HTA).</p><p align="center"><strong>In this number</strong></p><p
align="left"><strong>1. Myspace:</strong></p><li><a
href="
http://www.webstyler.it/files/2_1_myspace.pdf"
target="_blank">News, examples, tutorial online</a>,
<em>Webstyler thread</em> </li><li><a
href="
http://www.webstyler.it/files/2_2_ws.pdf"
---
?
Thanks
Posted: Wed Jun 20, 2007 2:41 am
by Gente
If you are using HTLM for your newsletter why do you need wordwrap()? As I remember wrapped HTML code display the same page as code written in one line (excepting a very very few troubles in IE)
Posted: Wed Jun 20, 2007 2:46 am
by webstyler
Gente wrote:If you are using HTLM for your newsletter why do you need wordwrap()? As I remember wrapped HTML code display the same page as code written in one line (excepting a very very few troubles in IE)
With more text If I not break word there are many syntax error as "%20" or link not 'linked'.
I have check and error are where line is break into code..
If I break first there aren't problem

Posted: Wed Jun 20, 2007 5:47 am
by superdezign
Gente wrote:If you are using HTLM for your newsletter why do you need wordwrap()? As I remember wrapped HTML code display the same page as code written in one line (excepting a very very few troubles in IE)
E-mails can't have lines longer than 70 characters, though HTML emails will be displayed as if they're lines are longer since all white space in HTML is recognized as a single space.
webstyler wrote:Question is: there are problem with tag "breaked" ?
As long as you only use the three arguments in wordwrap that you are using so far (and you should change the number "74" to "70"), your HTML won't be
broken, just separated. HTML can handle the white space, even inside of tags. Where is your error, exactly?
Posted: Wed Jun 20, 2007 5:58 am
by Gente
superdezign wrote:Gente wrote:If you are using HTLM for your newsletter why do you need wordwrap()? As I remember wrapped HTML code display the same page as code written in one line (excepting a very very few troubles in IE)
Sorry. You are right. Didn't associate the post with mail(). Hard morning

Posted: Wed Jun 20, 2007 9:06 am
by feyd
Is there a reason you aren't using a mailing library such as Swift?