Page 1 of 1

[SOLVED] Formbuilder: no carriage return in emails

Posted: Sat Dec 12, 2009 5:18 pm
by jocando
Hi

I've set up a form using FormBuilder. Only problem is that the email comes through in one large block of information - no carriage returns.

I've tried everything I can think of. Is there a way to manually insert a carriage return in the email template?  Or anything else I can do?

I'm using the latest version of CMSMS(1.6.6) and Form Builder (0.6b1)

Many thanks.
Jo

Re: Formbuilder: no carriage return in emails

Posted: Sat Dec 12, 2009 5:42 pm
by Rolf
Hi Jocando

Add |nl2br to the text block parameter >> for instance {$reaction|nl2br}

Grtz. Rolf

Re: Formbuilder: no carriage return in emails

Posted: Sat Dec 12, 2009 6:07 pm
by jocando
Thanks - that looks like it ought to work, but it doesn't.  No effect.

Any idea why this isn't working?

Many thanks
Jo

Re: Formbuilder: no carriage return in emails

Posted: Sat Dec 12, 2009 6:12 pm
by Rolf
Strange, it works for me...  :-\
Did you add it to all the right templates: mail, pages, etc.

Perhaps put a copy of one here

Grtz. Rolf  :)

Re: Formbuilder: no carriage return in emails

Posted: Sat Dec 12, 2009 6:24 pm
by rab
Have you tried inserting '
' wherever you want your carriage return in the email template? Works for me.

rab

Re: Formbuilder: no carriage return in emails

Posted: Sat Dec 12, 2009 7:02 pm
by jocando
Ah, so simple!  Yes, the
solution works. Phew!

Many thanks.  Don't know why the |nl2br doesn't work this time, but will try it out on another form just to check.

Thanks both!
Jo