Forums / Cotonti / Support / \n in emails from contact plugin

Twiebie
#1 2012-09-14 00:48

Whenever I receive an email via the contact plugin I get something like this:

Sender: Twiebie (email@address.com) \n
: This is a test\n
Message:\nPraesent vitae augue arcu, vitae scelerisque massa. Sed lobortis rutrum feugiat. Nam semper lectus at ligula laoreet dignissim. Duis posuere velit nec leo elementum eget volutpat eros ornare. Aliquam ligula lacus, commodo id tincidunt et, lacinia id est. Proin ac libero nulla, nec dictum ante.\n\n

I've tried it on a few different servers with the latest Cotonti Siena.

Trustmaster
#2 2012-09-14 17:43

Are other emails sent from the site (PM notifications for example) alright or do they have the same \n issue?

May the Source be with you!
Twiebie
#3 2012-09-14 17:48

Other emails sent from the website are indeed fine.

Just the ones from the contact plugin have the \n issue.

Trustmaster
#4 2012-09-14 19:49

This must be contact plugin bug then. I would be grateful if you created a github issue for this :)

May the Source be with you!
Twiebie
#5 2012-09-14 20:19
esclkm
#6 2012-09-15 06:32

See contact plugin settings! it has hustomizable template

littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Twiebie
#7 2012-09-15 14:01
#35460 esclkm:

See contact plugin settings! it has hustomizable template

Please elaborate.

Added 3 hours later:

Ah, I see.

When I use something like this in the template it doesn't produce the \n.

Name: {$author}
Subject: {$subject}

{$text}
This post was edited by Twiebie (2012-09-15 17:26, 11 years ago)
esclkm
#8 2012-09-15 17:50

OK! bug in default variant of the config?

littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Twiebie
#9 2012-09-15 18:00

By default in the config the template is empty.