YAFLogo

tecman
  • tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
8 years ago
Is there a way to configure YAF so the engine will send an email when any user adds a new post anywhere?

Something as the 'Watch this topic' option for a thread, or daily digest with all new posts - but for all forums we have.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
8 years ago

Is there a way to configure YAF so the engine will send an email when any user adds a new post anywhere?

Something as the 'Watch this topic' option for a thread, or daily digest with all new posts - but for all forums we have.

Originally Posted by: tecman 

Yes that option exist but you need to enable it first in the Host Settings > Permission > Allow Notification of All Posts on All topics

tecman
  • tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
8 years ago
Thank you - found it.

Does it mean that if I enable it, ANY user can enable sending emails on every new post, so it really leads to "tons of email traffic"?

So there is no option to make it only for the forum admin?

I also see the "Report Post Permissions" combo box under the check box you mentioned, and there are 3 available values: Forbidden, Registered Users, All Users. As I understand, these are the categories of users we can enable email notifications for. It would be nice to have the 4th category, Forum Admins, there.

BonzoFestoon
8 years ago
Did you ever figure this out?

We also want to have a notification for all posts and replies sent to one email address.

tecman
  • tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
8 years ago
If I had found a solution, I would have definitely posted it here. Obviously, this feature is not present in the YAF forum engine.
BonzoFestoon
8 years ago
Thanks for confirming tecman. I am surprised that there is not a feature that would send notifications to one address that could act as a queue (CRM or OTRS, for example). For many like us, a forum is just an extension of their support department.

We are trying a dummy account that has the email address to our support queue with the all posts notifications, but that does not seem to be working either. The all notifications does not seem to be working with my admin account either, so something is wrong there, too.

Next, I am going to create a new role for the dummy account and make that role the only one with moderation privileges and then turn on send email to all moderators option, because that did work. The problem we had with that before is that we don't want all 12 moderators getting emails. That causes chaos and redundant work. The drawback is that someone will need to log in with that account to moderate the messages, which is not ideal.

I saw some SQL deadlocks in the event viewer related to Mail, that I guess I need to debug; however based on the message, the error seems transient and the code looks like it make multiple attempts.Besides, debugging that will be a serious PITA.

Exception Thrown in SendMail Thread: System.Data.SqlClient.SqlException (0x80131904): Transaction (Process ID 64) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

I might just try to write my own feature/module to do it. If I do, I will post to the proper forum and add a link to this message, but if I do that it might just post directly to a CRM queue instead of sending an email, which is what we want in the end anyway.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
8 years ago
That option really exist in the Email Notification Preferences Page inside the User Control Panel the user can select Notification for all posts on all topics -> You will receive Instant Email Notifications when someone has posted a new Message.

But first the Setting needs to be enabled in the Host Settings > Permission > Allow Notification of All Posts on All topics

BonzoFestoon
8 years ago
tha_watcha, first thank you for building and maintaining this project; it is quite a beast.

I made those changes, but I am not getting emails.

First, I tried to subscribe to all emails, but the option was not there. Then I went to host settings, enabled the option, then subscribed all notifications, but still no notifications.

The forum can definitely send emails for new user registration and lost password, so I think the feature all notification is broken in the version of the code I have, which is very possible. I wanted more bootstrap, so I have 2.2.3 BETA 20150822 (Date: 8/21/2015). At some point, I probably need to do a merge with the latest, so I don't get left behind.

Anyway, that is not really the point. The point is we - I think I speak for Tecman on this - want an email address (NOT A USER) to receive notifications of all posts. In my case, that email address would be to a general support email address that is monitored in a ticketing system, such as OTRS, so that users could coordinate and respond to messages using the same workflow as all other support tickets.

Edit:

Weird thing is that the notifications started working this morning. Perhaps the app pool recycled? Not really sure why the setting change took so long to take effect.

BonzoFestoon
8 years ago
tha_watcha,

Is the notification sent if the post is moderated? I think that is the problem.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
8 years ago

tha_watcha,

Is the notification sent if the post is moderated? I think that is the problem.

Originally Posted by: BonzoFestoon 

No, In that case an email to the moderators would be send out that a message needs approval. When the message is approved the the notification mail is send out.

Also on a side note if you have selected Notification for all Posts and Topics you didn't get a notification when you are the author of the post.

Anyway, that is not really the point. The point is we - I think I speak for Tecman on this - want an email address (NOT A USER) to receive notifications of all posts. In my case, that email address would be to a general support email address that is monitored in a ticketing system, such as OTRS, so that users could coordinate and respond to messages using the same workflow as all other support tickets.

In that case just create a user account with that email address, i think that is the easiest solution.

BonzoFestoon
8 years ago
But we don't want all of the moderators to be notified. We have 12 and they all have other things to do. We want a notification to be sent to just one email address (ticketing system like OTRS) when a user post needs to be moderated. Is that possible or do I need to write some code?

I have not looked for it yet, but I am hoping the code that sends the email to the moderators is a module that I can duplicate then easily modify to send to the email address in a new host and/or forum setting.

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
2 years ago

But we don't want all of the moderators to be notified. We have 12 and they all have other things to do. We want a notification to be sent to just one email address (ticketing system like OTRS) when a user post needs to be moderated. Is that possible or do I need to write some code?

I have not looked for it yet, but I am hoping the code that sends the email to the moderators is a module that I can duplicate then easily modify to send to the email address in a new host and/or forum setting.

Originally Posted by: BonzoFestoon 

In that case just create a user account with that email address, i think that is the easiest solution.

Originally Posted by: tha_watcha 

I think using what he suggested would work. You might need to create another group for Moderators with only that User in that group and have that "group" emailed. You would just set that account up with the email you want emailed.