homepage Welcome to WebmasterWorld Guest from 54.205.241.107
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Putting in an extra line break
Dexie

10+ Year Member



 
Msg#: 3664958 posted 4:08 pm on Jun 2, 2008 (gmt 0)

How would you make sure that the url is on the last line below, on it's own please ? When someone receives this in their email at the moment, the url is on the same line as the one above ? ?

$ttext = "
Hi,

This is the content of the email.

blah, blah.

Kind regards

blah, blah, blah, blah
blah, blah, blah, blah
http://www.example.com

";

Any help much appreciated.

Dexie.

[edited by: dreamcatcher at 7:07 am (utc) on June 3, 2008]
[edit reason] use example.com. Thanks. [/edit]

 

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3664958 posted 5:00 pm on Jun 2, 2008 (gmt 0)

do you generate the email?

if so then you should be able to add the newline or break

Dexie

10+ Year Member



 
Msg#: 3664958 posted 5:09 pm on Jun 2, 2008 (gmt 0)

The text is already in the form, which I have already preset, but for some reason, I can't get the website address, to be displayed on a line of it's own.

Dexie

10+ Year Member



 
Msg#: 3664958 posted 5:47 pm on Jun 2, 2008 (gmt 0)

I've tried :

<br />

<br/>

<br>

/n

/r

/n/r

/r/n

None of them worked - anything else to try ?

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3664958 posted 10:03 pm on Jun 2, 2008 (gmt 0)

try

\n or \r\n

;)

Dexie

10+ Year Member



 
Msg#: 3664958 posted 9:54 am on Jun 3, 2008 (gmt 0)

Tried both, but still on the same line ? ?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved