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

Sending CC Info by email
I am a little bit less knowledgable in the security area as most developers and I know I have a lot

Multiple while loops
I have several DB queries that I know should be returning results and aren't. I have a feeling it ha

Insert to MySQL inside foreach
Hey.
I am parsing some html, and putting inside an html db.
I need to create a randomized inte

tag inside php...
hi


Code: <?php
echo "<td width="$columnWidth%" align=&

Header redirect
Hello ive got a problem ive got form with its action set to itself.
Code: <form id="f

Can't find a decent web analytics!!!
I've downloaded and installed Piwik. It's location detection based on IP addresses is fairly inaccur

MII Netweaver Server stopped due to CPIC connection Problem
Dear Experts,
We have SAP XMII 12.0 setup running on Netweaver 2004s,7.0, Java Stack only.

Can we convert non uni code system into unicode
Hi All,

Presently i am using non-unicode system and the sap version is 4.7.
Can i c

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

help with image upload code
Hello,

right now this code I have resizes images and then places them into the uploads folder

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