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

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

phph within href not showing php if change ? to &
Code: [Select]<a href="<?php echo $puser; ?>?m=<?php=(($m-1)&l

Is it possible to put an entire 500-page book in a database with PHP?
I am working on an intranet and I was wondering if its possible to code php with mysql to enter a fu

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

writing my own sobel filter convolution - something is wrong
I am trying to keep it very simple, I cant see anything wrong with my logic, could anybody help poin

Form File Upload
I've read through tons of resources and tutorials and as far as I can tell, my code is accurate, but

Concatenate two strings ???
I have string one $string1 and another $string2.

How to concatenate (add) both of them $str

Where am I going wrong
Been trying to work this out for hours

I have two tables called 'Genres' and 'Films'. Genre

LIMIT $start, 10... how to pass last value queried into next page with GET??
Ok I know how to display the first or last 10 results of a query...

$result = mysql_query(&q

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