• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Private Message mail text empty

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

when I send a pm (private message) to myself, I receive an email, but the mail body is empty. The subject line is ok.

I debugged, net.jforum.util.mail.Spammer.getMessageText returns empty. There is a warning in this metdod: freemarker.template.Configuration.getDefaultConfiguration() is deprecated. This may be the reason for the problem.

My Platform:
IBM Rational Software Development Platform
Version: 6.0.0
Build id: 20041117_2230
JForum 2.1.5

Another note is: The mail body file address (originally mail/newPrivateMessage.txt) should be teplates/mail/newPrivateMessage.txt I guess, but when I change it that way, I receive:

2005-10-20 19:39:41,703 WARN [Spammer] - java.io.FileNotFoundException: Template templates/mail/newPrivateMessage.txt not found.

But I see that it is there.
[originally posted on jforum.net by cagin]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solved by making

mail.charset = ${encoding}
mail.template.encoding = ${encoding}

in SystemGlobals.properties. (encoding=ISO-8859-9, mail.charset and template.encoding was UTF-8 ).


[originally posted on jforum.net by cagin]
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic