Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Newline ( \n ) in emails!

Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
08-08-2003 23:09
It would be really nice if the new line character '\n' worked in emails. That way I wouldn't always just get one honking huge line of stuff.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
08-09-2003 00:02
Thats odd... I thought it worked all the time, if not, I WANT IT TO! :D

Please, LL, make strings in certain functions a bit more general (meaning widespread) in their handling of \n and the other \'s.

-Chairs.....oops, need glasses :D
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Dave Zeeman
Master Procrastinator
Join date: 28 Jan 2003
Posts: 1,025
08-09-2003 02:37
Ama, using llemail?

It does work... "\n" adds a new line into any string sent by email, I should know, I just used this stuff a day ago to try to streamline sending event emails to linden labs (and it really wasn't very streamlined)

Just send an email to yourself and make the string have \n in it like "Hey there ama. \nHow are you" should work just fine.... did for me at least. :D
_____________________
llToggleDaveZeemanIntelligence(FALSE);
Philip Linden: Zeeman, strip off the suit!
Dave Zeeman - Keeping Lindens on their toes since v0.3.2!
Rathe Underthorn
Registered User
Join date: 14 May 2003
Posts: 383
08-09-2003 03:26
It doesn't, I usually add some special string, like @NL@ for newline in place of \n and then I parse it server side and replace those with real \n's on my server.
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
08-09-2003 09:44
Just to be sure before I posted this I did exactly as you said Dave. The result of emailing this: "Hello\nThis is a test\nOf newline" is this: "HelloThis is a testOf newline".

The \n's are parsed out but don't actually add new line chars to the email. At least as far as outlook express is concerned.

Ok so here may be the problem, there are two ways of handling new lines. The linux way and the windows way. One way uses two characters (carriage return and newline) the other uses one (new line). I can't remember which is which, but based on this and dave thinking it works, I'm gonna guess that windows uses the 2 characters and SL is only putting in the 1.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
08-09-2003 09:51
Ama, you could always hardcode in some html, the newline tag... um.... forgot what it was called :-\ I think it was like <HB> or <LB> or <NL> or somethign of the like....
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
08-09-2003 10:22
<br>

but the viewer won't think its html unless you get the headers right and SL puts stuff too early in the email to get that going I think. However if anyone does get it working, let me know.
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
08-09-2003 10:32
Can SL be used to send large amounts of untracable spam? Just a thought
_____________________
Touche.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
08-09-2003 10:43
Well... it can, but you have to design a system kinda like mine for IM's to do so since llEmail delays your script 20 seconds per call.
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Dave Zeeman
Master Procrastinator
Join date: 28 Jan 2003
Posts: 1,025
08-09-2003 14:45
Yeah, it takes 20 seconds to actually e-mail, so spam takes forever to send.

Strange, I also use outlook express and the \n command works perfectly for me. Must be some strange settings thing...
_____________________
llToggleDaveZeemanIntelligence(FALSE);
Philip Linden: Zeeman, strip off the suit!
Dave Zeeman - Keeping Lindens on their toes since v0.3.2!
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
08-09-2003 15:00
Well yeah but for the price of untracable spam that ain't bad. Ain't bad at all.
_____________________
Touche.