-
- 70 Posts
Formit's "emailConvertNewlines" works fine in the email rcvd by the site-administrator.
unfortunately there is not such a property in the autoResponder
1 or is there?
-tried "&fiarConvertNewlines='1' " no luck
2 alternatively; is there a way to include the sender of f.i. a Contact-form in the "emailTo" command?
lmv
-
- 24,544 Posts
Looking at the code, I don't see any way to do it without hacking snippet code.
You could try changing the line 71 of the autoresponder snippet from this:
$message = $formit->getChunk($tpl,$placeholders);
to this:
$message = nl2br($formit->getChunk($tpl,$placeholders));
-
- 24,544 Posts
The autoresponder code was created as an afterthought, and as far as I know, it was never updated. It should definitely include newline conversion as an option.
Another way to go, BTW, is to put br or p tags in the Tpl chunk. Unlike my suggestion above, that won't be overwritten if you upgrade or reinstall the Login extra.