Hello everyone,
I use PHP+Apache+PostgreSQL. I tried to pull a text field from PostgreSQL and send it out using mail() function. Everything is fine, except:
I have a single (very long) line of text. I would NOT wrap around. Is there any way I can send the this text field; so that, the receiver will see multiple lines of text instead of a LOOOONG line of text?
Thanks in advance,
Chris
You could use the wordwrap function...
$lines = wordwrap ($long_line, $width, "\n", 1)
The \n is just for the line breaks, and the 1 will make sure the string is always cut off at the relevant width.
Max