Re: How to add line break in text mail layout?

2008-12-08 Thread majna

You have to put \n into *double* quotes.
Only then  PHP will parse this \n token.
PHP parser basics...

On Dec 8, 8:55 am, Hipnotik [EMAIL PROTECTED] wrote:
 On 6 Gru, 17:32, majna [EMAIL PROTECTED] wrote:

  Just write \n
  Examples:
  ?php echo \n;?
  ?php echo $name . \n;?

 Wow! It works!
 I don't know why, but it works correct. The only thing I had to do
 was
 moving \n into inside of echo function.

 Does not work directly in template:
 Something: ?php e($Model['field']); ?\n

 but this code works correct:
 Something: ?php e($Model['field']).\n; ?

 Thanks all for help ;)

  On Dec 5, 1:44 pm, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:

   Well...that's not supposed to happen. Can you check the mail source
   and mime headers? Maybe you're not sending your email in plain text..?

   On Dec 5, 1:11 pm, Hipnotik [EMAIL PROTECTED] wrote:

On 5 Gru, 12:35, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:

 What about simply hitting the enter key? :)

Doesn't work... displays all lines in one :(

 On Dec 5, 12:14 pm, Hipnotik [EMAIL PROTECTED] wrote:

  How to add line break in text mail layout?

  It's in elements/email/text/default.ctp file.
  I tried to use:
  \n
  \r\n
  \r
  and still it doesn't work correct.
  It breaks the lines but new line character (i.e. \n) appears in the
  received message too.

  How to do that?
  Thanks for help ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to add line break in text mail layout?

2008-12-07 Thread Hipnotik

On 6 Gru, 17:32, majna [EMAIL PROTECTED] wrote:
 Just write \n
 Examples:
 ?php echo \n;?
 ?php echo $name . \n;?

Wow! It works!
I don't know why, but it works correct. The only thing I had to do was
moving \n into inside of echo function.

Does not work directly in template:
Something: ?php e($Model['field']); ?\n

but this code works correct:
Something: ?php e($Model['field']).\n; ?\n

Thanks all for help ;)

 On Dec 5, 1:44 pm, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:



  Well...that's not supposed to happen. Can you check the mail source
  and mime headers? Maybe you're not sending your email in plain text..?

  On Dec 5, 1:11 pm, Hipnotik [EMAIL PROTECTED] wrote:

   On 5 Gru, 12:35, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:

What about simply hitting the enter key? :)

   Doesn't work... displays all lines in one :(

On Dec 5, 12:14 pm, Hipnotik [EMAIL PROTECTED] wrote:

 How to add line break in text mail layout?

 It's in elements/email/text/default.ctp file.
 I tried to use:
 \n
 \r\n
 \r
 and still it doesn't work correct.
 It breaks the lines but new line character (i.e. \n) appears in the
 received message too.

 How to do that?
 Thanks for help ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to add line break in text mail layout?

2008-12-07 Thread Hipnotik

On 6 Gru, 17:32, majna [EMAIL PROTECTED] wrote:
 Just write \n
 Examples:
 ?php echo \n;?
 ?php echo $name . \n;?

Wow! It works!
I don't know why, but it works correct. The only thing I had to do
was
moving \n into inside of echo function.

Does not work directly in template:
Something: ?php e($Model['field']); ?\n

but this code works correct:
Something: ?php e($Model['field']).\n; ?

Thanks all for help ;)

 On Dec 5, 1:44 pm, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:



  Well...that's not supposed to happen. Can you check the mail source
  and mime headers? Maybe you're not sending your email in plain text..?

  On Dec 5, 1:11 pm, Hipnotik [EMAIL PROTECTED] wrote:

   On 5 Gru, 12:35, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:

What about simply hitting the enter key? :)

   Doesn't work... displays all lines in one :(

On Dec 5, 12:14 pm, Hipnotik [EMAIL PROTECTED] wrote:

 How to add line break in text mail layout?

 It's in elements/email/text/default.ctp file.
 I tried to use:
 \n
 \r\n
 \r
 and still it doesn't work correct.
 It breaks the lines but new line character (i.e. \n) appears in the
 received message too.

 How to do that?
 Thanks for help ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to add line break in text mail layout?

2008-12-06 Thread majna

Just write \n
Examples:
?php echo \n;?
?php echo $name . \n;?


On Dec 5, 1:44 pm, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:
 Well...that's not supposed to happen. Can you check the mail source
 and mime headers? Maybe you're not sending your email in plain text..?

 On Dec 5, 1:11 pm, Hipnotik [EMAIL PROTECTED] wrote:

  On 5 Gru, 12:35, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:

   What about simply hitting the enter key? :)

  Doesn't work... displays all lines in one :(

   On Dec 5, 12:14 pm, Hipnotik [EMAIL PROTECTED] wrote:

How to add line break in text mail layout?

It's in elements/email/text/default.ctp file.
I tried to use:
\n
\r\n
\r
and still it doesn't work correct.
It breaks the lines but new line character (i.e. \n) appears in the
received message too.

How to do that?
Thanks for help ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to add line break in text mail layout?

2008-12-05 Thread dr. Hannibal Lecter

What about simply hitting the enter key? :)

On Dec 5, 12:14 pm, Hipnotik [EMAIL PROTECTED] wrote:
 How to add line break in text mail layout?

 It's in elements/email/text/default.ctp file.
 I tried to use:
 \n
 \r\n
 \r
 and still it doesn't work correct.
 It breaks the lines but new line character (i.e. \n) appears in the
 received message too.

 How to do that?
 Thanks for help ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to add line break in text mail layout?

2008-12-05 Thread Hipnotik

On 5 Gru, 12:35, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:
 What about simply hitting the enter key? :)

Doesn't work... displays all lines in one :(

 On Dec 5, 12:14 pm, Hipnotik [EMAIL PROTECTED] wrote:



  How to add line break in text mail layout?

  It's in elements/email/text/default.ctp file.
  I tried to use:
  \n
  \r\n
  \r
  and still it doesn't work correct.
  It breaks the lines but new line character (i.e. \n) appears in the
  received message too.

  How to do that?
  Thanks for help ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to add line break in text mail layout?

2008-12-05 Thread dr. Hannibal Lecter

Well...that's not supposed to happen. Can you check the mail source
and mime headers? Maybe you're not sending your email in plain text..?

On Dec 5, 1:11 pm, Hipnotik [EMAIL PROTECTED] wrote:
 On 5 Gru, 12:35, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:

  What about simply hitting the enter key? :)

 Doesn't work... displays all lines in one :(

  On Dec 5, 12:14 pm, Hipnotik [EMAIL PROTECTED] wrote:

   How to add line break in text mail layout?

   It's in elements/email/text/default.ctp file.
   I tried to use:
   \n
   \r\n
   \r
   and still it doesn't work correct.
   It breaks the lines but new line character (i.e. \n) appears in the
   received message too.

   How to do that?
   Thanks for help ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---