Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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]
 
You can't expect to wield supreme executive power just because
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic