PDA

View Full Version : Breakspaces by automatic email



Xarea
10-04-2008, 05:30 PM
I have a system where if you do something, you get an email. However, I can't seem to get it to space?

I've tried /r and <br />, but nothing seems to work?

It comes out like:

Hi there. Thanks for using the service. Have a great day. Ollie.

It should come out like:

Hi there.

Thanks for using the service.

Have a great day.
Ollie.

Any ideas, please?

Invent
10-04-2008, 05:54 PM
Have you tried \n ?..

Jme
10-04-2008, 06:00 PM
Yeah \n should do the trick.

Decode
10-04-2008, 06:02 PM
Try \n or if that doesnt work, just cheat and do something like this

message = "Hi there.

Thanks for using the service.

Have a great day.
Ollie.";

Agnostic Bear
10-04-2008, 06:06 PM
This is where hate for OS differences come in:

\r\n for windows.
\r for mac os x.
\n for linux.

Jme
10-04-2008, 06:08 PM
This is where hate for OS differences come in:

\r\n for windows.
\r for mac os x.
\n for linux.

\n works fine for me on windows :)

Florx
10-04-2008, 06:28 PM
Just do both and you are guarranteed it working :p

Agnostic Bear
12-04-2008, 07:48 AM
\n works fine for me on windows :)

Oh yeah that works too >_<

\r = return carriage
\n = new line

Want to hide these adverts? Register an account for free!