Форуми / Cotonti / Support / \n in emails from contact plugin

Twiebie
#1 14.09.2012 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 14.09.2012 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 14.09.2012 17:48

Other emails sent from the website are indeed fine.

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

Trustmaster
#4 14.09.2012 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 14.09.2012 20:19
esclkm
#6 15.09.2012 06:32

See contact plugin settings! it has hustomizable template

littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Twiebie
#7 15.09.2012 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}

Відредаговано: Twiebie (15.09.2012 17:26, 12 років тому)
esclkm
#8 15.09.2012 17:50

OK! bug in default variant of the config?

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

By default in the config the template is empty.