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

help need on ob_start()
Hi

I am a newbie in php, I have a code
Line number On/Off | Expand/Contract <?phpo

Accessing Infotype data in dialog program
Hi All
In Dialog programs attributes I didn't see any logical database field. How can I access

CHECK A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect a

fwrite error
Hi All,
Does anyone know what is causing the error in this code?

Code: <?
$error

Check Date/Time in PHP
What I need the code to check is that $reQuest is 24 hours in the past then return a time based on h

utl_file open error
i have file in the unix path

Path /popdev01/pop/popdevb/tfi/

File name

CODE NOT WORKING
Code: [Select]<?php
//include shared codes

include '../lib/common.php';
include

Kill a process
I have a question - how can I kill a process from a command line or by using Oracle SQL Developer? I

foreach result into a single variable
Hi,

I have this code...

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

Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/

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