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

$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

parsing error
can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The e

PHP SUBMIT
Code: <input name="doLogin" type="image" src="images/loginsubmit.jpg

About imagecopyresampled()
Hello,

I am looking to use this function to resize parts of an image to a fixed thumbnail siz

foreach result into a single variable
Hi,

I have this code...

Code: [Select]foreach ($_POST['Interests'] as $interest =&

my login script page is not working on remote computers
hi my login is working on my computer, but when i tried 2 computers from 2 different locations, they

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

Can php detect connection speed and thereafter swap out elements?
No code to post, lads, yet. Just looking for a yay or nay at this stage:

Can a php script be

adding 0 to numbers
Hey guys i need to create a 00001 number in a loop. Is there a better way of forcing a 5 digit numbe

is this the proper use of mysql_real_escape_string() to prevent sql injections?
i was wondering is this the proper use of mysql_real_escape_string() to prevent sql injections? any

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

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