Help with text break and new libne in email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Dave100
Forum Newbie
Posts: 6
Joined: Thu Jun 20, 2002 5:45 pm

Help with text break and new libne in email

Post by Dave100 »

Hello,

I am going bananas trying to get text breaks and new lines in this text which is sent in an email.

I have tried " and \n and r\n\ but the text in ther email still wraps and I see the code in the text.

Can anyone help me please as I have Googled and searched but to no avail.


Dave


define('UNOTIFY_MESSAGE','Hello, You have requested a Response. Choose a pdf file and download it . Read it then come bacl to this site. Once Use the email address and password you used to Login into your Account. Thank you for supporting us and enjoy your Ringtone');

I want it to be like this..

Hello,

You have requested a Response. Choose a pdf file and download it .

Read it then come bacl to this site. Once Use the email address and password you used to Login into your Account.

Thank you for supporting us and enjoy your day.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Code: Select all

$string = str_replace(array("\r", "\n"), '', $string));
Post Reply