word wrap in emails help needed


Posted on 16th Feb 2014 07:03 pm by admin

Hello, I understand how wordwrap works in php and have used it well before. However when I used wordwrap on a variable that is going to be emailed it puts the line breaks in well before it should. The code is below.

$name = thisisaname
$email = thisisanemail
Did you know?Explore Trending and Topic pages for more stories like this.

$text = "Account name:"."  ".$name."      "."Account email:"."  ".$email."r"."r";

$text = wordwrap($text,90,"r");

If i change word wrap to 50 it wraps it after the word Account? any help
No comments posted yet

Your Answer:

Login to answer
260 Like 20 Dislike
Previous forums Next forums
Other forums

Displaying image from database
Hi,

I've got a site where that's got a database behind it. Currently it has loads of items in

getting Vars to pass to next page.
Hello all,
I have a confusing situation on my hands, i am a member of a gaming community and we

Linux socket programming
Where can I find a good introduction to socket programming?

Help on code output
My CODE:

Code: [Select] echo "<phone>".$line["phone"].&qu

a very simple php header question (sorry!)
Firstly...I do apologise if this annoys anyone....a header error

I'm do not know php &

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

Progress bar tracking file downloads
Hey guys, was wondering if there was a way to track how far a file has been downloaded. I know there

temporary objects
Until now i thought every temporary object in C++ is created as constant. I'm wondering why my compi

$_POST
Hi, I have 2 seperate php files, and i want my $_POSt["fname"] To go into both of them, Fo

Limiting uploaded file type
Hi. First post here
I am working on a simple upload script, and I need it to limit the allowed f

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash