• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

E-Mail format in Mail-notification

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
where can i set the email-format in email-notifications?
(The mail i get if "Notify when a reply is posted" is checked and a reply is posted)
Because i get some html-soup mails (mails with visible html-tags), instead of plaintext or real html-mails.
Thanks,
franc
[originally posted on jforum.net by franc]
 
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
At Admin Panel -> Config

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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

Rafael Steil wrote:At Admin Panel -> Config

Rafael


Ah, yes, i found it, the third last item in the config, thank you!
And is there a way to use the HTML-version?
Is this a (known) bug, or an error at my side?
With this html i get an email with visible html-tags.
But my email-clients doesn't identify it as html-mail.

[originally posted on jforum.net by franc]
 
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
Hm, if you choose "HTML" in the Config page and the email's contents is displaying the tags instead of rendering it, you may open an issue in Jira.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Hi Franc, did you open a bug issue?

I've got a similar problem.
[originally posted on jforum.net by hagen]
 
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

hagen wrote:Hi Franc, did you open a bug issue?

I've got a similar problem.



No, i don't know how to do this. But there must be the problem, that
the message body hasn't set up as multipart/alternative, i guess.

By the way, i switched to Plaintext, but still get soup. Maybe i have to reinstall the forum?
[originally posted on jforum.net by franc]
 
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
Yes, I was with plain text from the beginning AND had that problem, too.

In addition I've got the feeling as if the wrong templates are taken.

Currently I'm struggling to find out how to get log information. But I'm a bit short in time for this.
[originally posted on jforum.net by hagen]
 
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

hagen wrote:Yes, I was with plain text from the beginning AND had that problem, too.


Even when i get a notification from THIS FORUM, it is html-tag-soup.
So the developer of jforum got that problem too.
Lets wait till version 2.1.9 (or 3.7.8 :-) ) i guess it will be fixed one day :-)
[originally posted on jforum.net by franc]
 
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
Some note in between.

I found out that the mails I get have the following property set:

Content-Type: text/plain; charset=us-ascii

But the content is HTML.

Hmmm. I'm not an expert with mails but this looks wrong.
Or is there something I have to tell my mail reader (I'm using "Mail" on a Mac).

Any ideas?
[originally posted on jforum.net by hagen]
 
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
Hallo Hagen,

the notification-mail which i get from this jForum was:



There are missing some parts. This mail cannot be displayed neither as html nor as text (with the tags!) like this.
Needs the multipart/alternative and the boundary attribute like e.g.:



Maybe the developers take a look at the function

private void defineMessageText(String text)

at line 203 in:

WEB-INF\classes\net\jforum\util\mail\Spammer.java

I found there some of the above mentioned fragments.

Gruss franc

[originally posted on jforum.net by franc]
 
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
Hi Franc,

for my instance at roblet.org running (a now slightly modified) version 2.1.8 I found out that the basic reason is that the global admin settings have had been set to TEXT and that users own settings are simply ignored by the code (2.1.8).

So the simple solution is to set global settings to HTML.
It's not a perfect solution since user settings are still ignored - but most mail readers should be able to handle text/html content.

In addition I also learned why the application doesn't respond with localized mails ... on admin page "configuration" you have to set the corresponding paths.
But be warned the translations are not in sync with the standard english ones.
(Just in case you have similar questions ...)

Regards,
Hagen.
[originally posted on jforum.net by hagen]
 
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

So the simple solution is to set global settings to HTML.


You mean in the admin-panel? I switched it back to HTML now, and i have clean text, thank you Hagen!

But why do i get even from THIS SITE notification emails like:

<html>
<head>
<base href="http://www.jforum.net/">
<style type="text/css">@import url( http://www.jforum.net//templates/default/styles/style.css );</style> </head> <body> Hi Franc,

for my instance at roblet.org running (a now slightly modified) version 2.1.8




[originally posted on jforum.net by franc]
 
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
Well, the actual reason - even for the original problem - is somewhat more complex.

When someone replies to a thread the file templates/mail/mailNewReply.txt gets read and interpreted. This file contains control information telling that in case you don't want the contents of the reply getting send some text (not containing any HTML tags) is returned and otherwise some other file with some other text is used.

The other file is templates/mail/mailNewReplyWithContents.txt which - and now it comes - contains the body of the mail you're getting with HTML tags! The content of the reply gets added on the fly to this body.

So JForum in Version 2.1.8 will always send mails containing HTML in case of a reply to a thread and you being interested in the content.
Thus they simply seem either to have the global settings set to TEXT as we had - or are running a different version.
[originally posted on jforum.net by hagen]
 
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
It seems as if there are some exceptions to the rule stated above.

Maybe everything is somewhat different when an anonymous posts a message.
[originally posted on jforum.net by hagen]
 
reply
    Bookmark Topic Watch Topic
  • New Topic