aspose file tools*
The moose likes JForum and the fly likes Email Notifications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Email Notifications" Watch "Email Notifications" New topic
Author

Email Notifications

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Just upgraded to 2.1.8 and have found the following issues. Not sure if it's bugs, or something not set right.

1. New Topic notifications are not being sent, although reply notifications are.

2. Email format is set to 'Text' but if the user selects "Include the message contents within the notification email: " it comes out as HTML. Is there a setting I've missed?

Any suggestions?
[originally posted on jforum.net by Jamieg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hm, if you are sure they might be bugs, you can register them in JIRA

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Is the new topic notification functionality already in Jforum 2.1.8 or is this feature to be included in a future release?
[originally posted on jforum.net by jaboud]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I found that "/templates/mail/mailNewReplyWithContents.txt", had many <HTML> tags in there.
This template file in "mail" seem to be the only one with many <HTML> tags. I modified this to below..and "reply with content" seem to be normal text now.



I hope this is the solution.
[originally posted on jforum.net by beautifulegg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks for the tip Beautifulegg. I edited the maiNewReplyWithContents template with your suggestion and it did clean the messages up. Here's the content of the current template:

${user.username}

A reply to your entry has been posted on TalkCRM.com. The text of the post is below.

${message}

---------
Read this topic online: ${path}
Unsubsribe to this topic: ${unwatch}


However the links at the bottom of the message are still coming through as plain text although the messages are set to be sent as HTML. Does anyone have any suggestions?



[originally posted on jforum.net by jaboud]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
.. I found that there is still a glitch to this...

When the post had more than one paragraph, the email notification adds "
"
(even if it's sent as "text" email)

If anyone has ideas, please post...
[originally posted on jforum.net by beautifulegg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
In spammer.java, I attempted to change (this didn't work)



to




However, this did not work...

Is there any way to replace "
" with paragraph in text in notification email when "Include the message contents within the notification email: " is selected "YES" ?




[originally posted on jforum.net by beautifulegg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Oh--nevermind... I had extra space in




This removed all the odd "
"


[originally posted on jforum.net by beautifulegg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Has anyone else found a way to send a notification when a new topic is created? I've found a request in JIRA http://www.jforum.net/jira/browse/JF-295 that's been open for over a year now but with no resolution.

John
[originally posted on jforum.net by jaboud]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This function seems to work fine for me. (If I understand the feature you are describing correctly...)

The only thing I needed to do is -in my profile, I checked "Include the message contents within the notification email: " to "yes"

OR- Click "Watch this forum" on the bottom of the forum (to get notification for that forum's activity)


I found the glitch to this though...
If I set "Include the message contents within the notification email: " to "yes", I get "notification" from ALL the forum (even from the forum I am not allowed to access)

[originally posted on jforum.net by beautifulegg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Both those functions are working - except for the links at the bottom. The come across as plain text despite the email type being set as HTML.

What I am looking for is a way to globally set the option to notify all members of certian categories, forums or groups when a new topic is added - without have to do the "watch this forum" option.

Does that make sense?
[originally posted on jforum.net by jaboud]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Oh- I gotcha... My misunderstanding.

Yes- that sounds like a great functionality to have.
[originally posted on jforum.net by beautifulegg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
That's not really as easy as it sounds. There are a lot of situations to be covered.

For example:

User's must be allowed to opt out of this (legal requirement in some countries to prevent your site from being "blacklisted" by anti-spamming services).

If you just consider notifying all users of new topics in forums, you have to deal with stuff like:

How do you manage/mark the forum as "auto-email"? And then register all users into them.

How do you deal with registering new users into all the "auto-email" forums?

How do you deal with "turning off" the auto-email forums? E.g., do you "unwatch" the forum for everyone? But what about users who still want to "watch?" Or do you just stop auto-watching the forum for new users?

And then to make it really useful, what folks want is integrate this with groups, so they can have exclude and/or include groups that define who gets e-mail... and managing/watching for changes in that group.

Then there are security issues, you have to validate that messages are not being sent to people who should not see them.

Oh, and I haven't even touched on dealing with "auto-watching" replies to all topics.

Bottom line is that it's do-able, but it's not a simple task to implement this. All it takes is a developer willing to put in the time.... care to volunteer? That's what open source is about.

That said, you might be able to meet your site specific, non-generic needs by modifying your site's implementations of the ForumDAO.notifyUsers(Forum) and the TopicDAO.notifyUsers(Topic) methods.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thank you - that make sense!

[originally posted on jforum.net by beautifulegg]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Sorry I've been away on family issues. Thanks for the reply monroe and what you say does make sense. However in a development environment with developers/consultants scattered all around the world it's a headache we still need to endure.

The problem is that we are coverting from an email based public folder implementation where the participants email their responses to the folder/forum and copies go to all folder/forum members. In this way response are distributed and the developers can reply if necessary. It also greatly increases forum participation.

I envison most of this to be controlled by group membership-user account hierarchy since forum access is controlled that way. The default for the group could be set to mark all members as "watch the forum" but still allow the individual users to opt out. The opt out could simply flag the particular forum as "un-watch" for that particular user.

I am probably oversimplifying things since I'm not a developer in this arena. If I was I would be more than willing to contribute. I was hoping that this functionality would be available in future releases.

I'll look at the two modules you suggested and see if I can figure something out. If so I'll definitely let you know!
[originally posted on jforum.net by jaboud]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
jaboud wrote:Sorry I've been away on family issues. Thanks for the reply monroe and what you say does make sense. However in a development environment with developers/consultants scattered all around the world it's a headache we still need to endure.

The problem is that we are coverting from an email based public folder implementation where the participants email their responses to the folder/forum and copies go to all folder/forum members. In this way response are distributed and the developers can reply if necessary. It also greatly increases forum participation.

I envison most of this to be controlled by group membership-user account hierarchy since forum access is controlled that way. The default for the group could be set to mark all members as "watch the forum" but still allow the individual users to opt out. The opt out could simply flag the particular forum as "un-watch" for that particular user.

I am probably oversimplifying things since I'm not a developer in this arena. If I was I would be more than willing to contribute. I was hoping that this functionality would be available in future releases.

I'll look at the two modules you suggested and see if I can figure something out. If so I'll definitely let you know!

Have you considered using a different tool (i.e. a collaboration tool rather than just a forum) ... like Clearspace or ClearspaceX by Jive software? (not open source/free though)
Or Alfresco , which is open source. Just a thought ..

[originally posted on jforum.net by GatorBait3]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Email Notifications